[hibernate-issues] [Hibernate-JIRA] Created: (ANN-636) Add the annotations to map the User Collection Type

jason (JIRA) noreply at atlassian.com
Thu Jul 19 10:30:52 EDT 2007


Add the annotations to map the User Collection Type
---------------------------------------------------

                 Key: ANN-636
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-636
             Project: Hibernate Annotations
          Issue Type: New Feature
          Components: binder
         Environment: n/a
            Reporter: jason


I am searching a way from the Hibernate Annotation to map the user defined collection, and find out the following :

Can anybody let me know what the status for this? or how i can map the user collection type by hibernate annotation, thanks
Add an annotation to specify the UserCollectionType for a OneToMany or ManyToMany.

The annotation is named CollectionTypeInfo, perhaps better named UserCollectionType, but I didn't know the standards for naming classes.

The change to AnnotationBinder is minor and is delineated by '//dwsjoquist//' comment lines.

Usage:
    @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
    @JoinColumn(name = "id")
    @CollectionTypeInfo(name = "examples.MyUserCollectionType")
    public List<ExampleAttribute> getExampleAttributes() {



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list