betweenGo

user-defined property type gotcha’s

by Frank Kim on Jul.28, 2005, under ACC, Repository

When you create a user-defined property type there are two things to keep in mind.

  1. The user-defined property should be transient.
  2. The user-defined property must have a data-type defined or the item that contains this property will not be displayable in the ACC.

Here is an example of a user-defined property type.

<item-descriptor name="foo" display-property="name" display-name="Foo">

 <property name="bar" property-type="com.betweengo.Bar" data-type="string"/>

 <table name="foo" type="primary" id-column-names="id">
  <property name="id" data-type="string"/>
  <property name="name" column-names="name" data-type="string"/>
 </table>

</item-descriptor>

To learn more, User-Defined Property Types. Note that in the ATG documentation the example for the user-defined property does not define a data-type. This is probably a documentation bug.

  • Share/Bookmark

Related posts:

  1. ATG Repository User-Defined Property Types
  2. ATG Product Bundles
  3. Specifying One-to-Many Relationship in ATG Repositories
  4. Date and Timestamp Repository Data Types
  5. Invalid column type SQLException with ATG Repository

:

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!