[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4682) Check that @CollectionTable (or its absence) defaults to the right table/column names
Scott Marlow (JIRA)
noreply at atlassian.com
Mon Jan 4 10:29:29 EST 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35075#action_35075 ]
Scott Marlow commented on HHH-4682:
-----------------------------------
Can this Jira be satisfied with a unit test?
With the below simple test, I could visually verify that "XXXHOMES" was used in test console output but the column names (HOME_STREET, HOME_CITY, HOME_COUNTRY) were not:
package org.hibernate.test.annotations.embedded;
@Entity
public class WealthyPerson extends Person {
@ElementCollection
@CollectionTable(name="XXXHOMES")
@AttributeOverrides({
@AttributeOverride(name="address1",
column=@Column(name="HOME_STREET")),
@AttributeOverride(name="city",
column=@Column(name="HOME_CITY")),
@AttributeOverride(name="country",
column=@Column(name="HOME_COUNTRY"))
})
protected Set<Address> vacationHomes = new HashSet();
}
In the console output, I saw this table created:
create table XXXHOMES (
PersonEmbed_id integer not null,
address1 varchar(255),
fld_city varchar(255),
iso2 varchar(255),
countryName varchar(255),
type_id integer
)
> Check that @CollectionTable (or its absence) defaults to the right table/column names
> -------------------------------------------------------------------------------------
>
> Key: HHH-4682
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4682
> Project: Hibernate Core
> Issue Type: Sub-task
> Components: entity-manager
> 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