]
Emmanuel Bernard resolved ANN-710.
----------------------------------
Resolution: Rejected
MapKeyManyToMany name attribute gets ignored
--------------------------------------------
Key: ANN-710
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-710
Project: Hibernate Annotations
Issue Type: Bug
Components: binder
Affects Versions: 3.3.0.ga
Environment: Hibernate 3.2.5
PostgreSQL dialect
Reporter: James Roper
The following mapping:
@CollectionOfElements
@JoinTable(name = "my_join_table", joinColumns = @JoinColumn(name =
"my_id"))
@Column(name = "text")
@Enumerated(EnumType.STRING)
@MapKeyManyToMany(joinColumns = @JoinColumn(name = "my_enum"))
private Map<MyEnum, String> text;
Generates the following table:
create table my_join_table (
my_id int8 not null,
text varchar(255),
mapkey varchar(255),
primary key (my_id, mapkey)
);
So, the "my_enum" column name is ignored, and "mapkey" is used
instead. Note that the key for the map is an enum.
Also, I don't see any way to set the length of a mapped column for String mapped
enums.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: