Code generator: sortedset are not instantiated by default
----------------------------------------------------------
Key: HBX-826
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-826
Project: Hibernate Tools
Type: Bug
Components: hbm2java
Versions: 3.1beta3
Environment: Hibernate 3.1.3 and plus.
MySQL 5.0
Reporter: Julien Fourment
Priority: Minor
Hi,
When defining a regular (not sorted) set in an hbm file, the generated java will define
the field as this:
private Set<Package> packages = new HashSet<Package>(0);
But when defining a sorted set in the my hbm file (using sort attribute with a comparator
class) the generated java looks like this:
private SortedSet<ServiceVersion> versions;
Type is correct, but the field in not populated with a default implementation by default,
like treeset ?
I would expect something like :
private SortedSet<ServiceVersion> versions = new TreeSet<ServiceVersion>(new
myComparator());
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira