[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4684) Make sure @Lob works with @ElementCollection

Scott Marlow (JIRA) noreply at atlassian.com
Tue Jan 5 13:55:29 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35098#action_35098 ] 

Scott Marlow commented on HHH-4684:
-----------------------------------

Updated org.hibernate.test.annotations.entity.Forest to include @ElementCollection of @Lob values:
 
	@Lob
	@ElementCollection
	public Set<Country> getNear() {
		return near;
	}

	public void setNear(Set<Country>near) {
		this.near = near;
	}

Also changed org.hibernate.test.annotations.entity.BasicHibernateAnnotationsTest.testSerialized() to use the nearby countries.  Worked fine.

Created test tables:
13:48:03,699 DEBUG SchemaExport:377 - 
    create table Forest (
        id integer generated by default as identity (start with 1),
        bigText varchar(255),
        country longvarbinary,
        length bigint not null,
        longDescription longvarchar,
        name varchar(255),
        smallText varchar(255),
        primary key (id)
    )
13:48:03,700 DEBUG SchemaExport:377 - 
    create table Forest_near (
        Forest_id integer not null,
        element longvarbinary
    )


> Make sure @Lob works with @ElementCollection
> --------------------------------------------
>
>                 Key: HHH-4684
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4684
>             Project: Hibernate Core
>          Issue Type: Sub-task
>          Components: annotations
>            Reporter: Emmanuel Bernard
>            Assignee: Scott Marlow
>


-- 
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