[ https://issues.apache.org/jira/browse/JDO-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17343640#comment-17343640 ]
Craig L Russell commented on JDO-709: ------------------------------------- 18.4.1 Element convert The convert element identifies the converter used with the field to map values in the class to and from values in the database. The value attribute identifies the class that implements the AttributeConverter interface. The converter class must be loadable at runtime by the same class loader as the domain object. after Table 8 For fields using converters, the default jdbc-type is the default jdbc-type for the database type of the AttributeConverter for the field. 19.1.2.1 Convert annotation @Retention(RetentionPolicy.RUNTIME) @Target(\{ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) @Repeatable(Converts.class) public @interface Convert { /** * The \{@link AttributeConverter} to use for conversion. * @return Converter class to use */ @SuppressWarnings("rawtypes") Class<? extends AttributeConverter> value(); /** * Whether this conversion is enabled. True by default. * Setting this to false allows disabling conversion that was specified at PMF level. * @return Whether the PMF default converter is enabled */ boolean enabled() default true; } 19.1.2.2 Converts annotation @Retention(RetentionPolicy.RUNTIME) @Target(\{ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) public @interface Converts { /** * The conversion specifications to be configured. * @return Array of converters */ Convert[] value(); } > Standardize field/property converters > ------------------------------------- > > Key: JDO-709 > URL: https://issues.apache.org/jira/browse/JDO-709 > Project: JDO > Issue Type: New Feature > Components: api, specification, tck > Reporter: Matthew T. Adams > Assignee: Craig L Russell > Priority: Minor > Labels: converstion, converter, jdo, type, type-converter > Fix For: JDO 3.2 > > Attachments: JDO-709-01.patch, JDO-709-3.patch, JDO-709-4.patch > > > This request is to standardize a user's ability to specify conversions of > fields or properties of persistence-capable classes. Currently, this is left > to vendor extensions. -- This message was sent by Atlassian Jira (v8.3.4#803005)