catalog

Generate Maven archetype from Java code

非 Y 不嫁゛ 提交于 2021-02-04 16:15:42
问题 I want to know if it's possible to run the maven command: archetype:generate in Java code. I've tried this with the maven embedder, but this library is deprecated. I want to do an archetype:generate from a remote catalog, and capture the required properties of the archetype. The maven command I want to run is for example: mvn archetype:generate \ -DgroupId=com.maven \ -DartifactId=test \ -DarchetypeVersion=1.0-alpha-4 \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId

Querying Service Catalog Tables

我怕爱的太早我们不能终老 提交于 2020-04-07 20:19:27
ServiceNow开发中我们在写代码查询request_item表时,经常会遇到想要根据variable的值来作为查询条件。但是官方文档有强调: You cannot directly query the variables of the Service Catalog Request Item table [screqitem]. Instead, query the Variable Ownership table, [scitemoptionmtom], by adding two queries, one for the variable name and another for the value. The query returns the many-to-many relationship, which you can dot-walk to the requested item. Wrong example: var gr = new GlideRecord('sc_req_item'); gr.addQuery('variables.variable_iem',item_value); ...... Right example: var request_item_id; var gr = new GlideRecord('sc_item_option_mtom'

Personalizing Using Web Parts->Introducing Web Part Controls

↘锁芯ラ 提交于 2020-03-01 22:45:40
Introducing Web Part Controls The Web Part Control Set includes the following controls: Web Parts are ASP.NET server controls that can be used and personalized with the Web Part Control Set. Any ASP.NET server control or user control can behave as a web part. Web Part Zones provide a way to organize parts into regions on the page. Zones are container controls that provide layout for parts, and add common, consistent UI elements such as a Verb Menu and border to each part. The WebPartManager control manages the pages personalization state, and co-ordinates communication between parts and zones.

How to discover what a Postgresql table's usage is?

痴心易碎 提交于 2020-01-16 00:41:33
问题 Our team is working on a Postgresql database with lots of tables and views, without any referential constraints. The project is undocumented and there appears to be a great number of unused/temporary/duplicate tables/views dirtying the schema. We need to discover what database objects have real value and are actually used and accessed. My inital thoughts were to query the Catalog/'data-dictionary'. Is it possible to query the Postgresql Catalog to find an object's last query time. Any

CREATE SCHEMA IF NOT EXISTS raises duplicate key error

此生再无相见时 提交于 2020-01-14 07:33:21
问题 To give some context, the command is issued inside a task, and many task might issue the same command from multiple workers at the same time. Each tasks tries to create a postgres schema. I often get the following error: IntegrityError: (IntegrityError) duplicate key value violates unique constraint "pg_namespace_nspname_index" DETAIL: Key (nspname)=(9621584361) already exists. 'CREATE SCHEMA IF NOT EXISTS "9621584361"' Postgres version is PostgreSQL 9.4rc1. Is it a bug in Postgres? 回答1: This

CREATE SCHEMA IF NOT EXISTS raises duplicate key error

ε祈祈猫儿з 提交于 2020-01-14 07:33:09
问题 To give some context, the command is issued inside a task, and many task might issue the same command from multiple workers at the same time. Each tasks tries to create a postgres schema. I often get the following error: IntegrityError: (IntegrityError) duplicate key value violates unique constraint "pg_namespace_nspname_index" DETAIL: Key (nspname)=(9621584361) already exists. 'CREATE SCHEMA IF NOT EXISTS "9621584361"' Postgres version is PostgreSQL 9.4rc1. Is it a bug in Postgres? 回答1: This

Store and view images in JAVA database - Netbeans

烈酒焚心 提交于 2019-12-25 19:37:36
问题 I am creating a simple photo catalogue using JAVA and Netbeans. I have the basic Swing layout all OK and I can store and retrieve text/number etc from/to the database, delta records etc etc. This is all Fine. I am really not sure how to go about storing the images and viewing them in the jFrame. I want to store the images as a file path I think (as opposed to BLOB) as I have read this is better? I am using getText and setText to display the database entries on the form at present and this is

Magento: catalog in /catalog url path

旧街凉风 提交于 2019-12-24 02:02:38
问题 I hav a navigation with cms pages and a button 'catalog'. This one links to www.website.nl/catalog I want to display the catagories under this url. I tried to rename the root categorie to 'catalog' and show the root category in the navigation, but that isn't possible ( http://www.magentocommerce.com/wiki/3_-_store_setup_and_management/catalog/creating_and_assigning_root_categories ) Now I have 'catalog' as a cms-page with a static block wich shows the categories. It works, but when the

Magento custom order attribute/fields? Shooting myself in the foot? [closed]

不羁岁月 提交于 2019-12-21 17:35:14
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 months ago . I'm building a Magento store using a single catalog over 4 domains: 1 for the US and 3 for Europe (UK, French, and German). There's 1 fulfillment warehouse in Europe, 1 in the US and a sort of unofficial/internal "warehouse" in the US where giveaways and such are fulfilled,

Test catalogs - common bugs or test cases

流过昼夜 提交于 2019-12-20 23:32:19
问题 I'm looking for catalogs of common bugs, weaknesses, and test cases or questions for software. In Lessons Learned in Software Testing I saw an example test catalog, but I typically can't find good, specific test catalogs out there for various common features or feature types. Can someone point me to a resource? Perhaps a community wiki on SO would be in order? Here are some comminuty wikis for test case catalogs: Numeric Input Test Catalog Text Input Test Catalog 回答1: Here's a great starting