[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9485) JPA: validate @TypeDef annotation
Dmitry Geraskov (JIRA)
jira-events at lists.jboss.org
Thu Aug 25 08:48:17 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623986#comment-12623986 ]
Dmitry Geraskov commented on JBIDE-9485:
----------------------------------------
Test case:
1. Create Entity in JPA project
2. create class test.pack.AddressTypeDescriptor which is not implement any interfaces
3. Add @TypeDef(name="addr", typeClass=test.pack.AddressTypeDescriptor.class)
Observe an error appeared
4. Fix the error
5. Create another enity and add same named type def
Observe an error appeared
> JPA: validate @TypeDef annotation
> ---------------------------------
>
> Key: JBIDE-9485
> URL: https://issues.jboss.org/browse/JBIDE-9485
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: Hibernate
> Affects Versions: 3.3.0.M2
> Reporter: Dmitry Geraskov
> Assignee: Dmitry Geraskov
> Labels: new_and_noteworthy
> Fix For: 3.3.0.M3
>
>
> A. Validate the name is unique
> B. typeClass can name any of the org.hibernate.type.Type derivatives.
> Namely:
> 1) Any impl of org.hibernate.type.Type
> 2) Any impl of org.hibernate.usertype.UserType, including impls of
> org.hibernate.usertype.EnhancedUserType and
> org.hibernate.usertype.UserVersionType
> 3) Any impl of org.hibernate.usertype.CompositeUserType
> 4) Any impl of org.hibernate.usertype.UserCollectionType
> (see http://lists.jboss.org/pipermail/hibernate-dev/2011-August/006916.html)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list