NotEmptyValidator throws ClassCastException on non-null wrapper types
---------------------------------------------------------------------
Key: HV-23
URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-23
Project: Hibernate Validator
Issue Type: Bug
Components: validators
Affects Versions: 3.0.0.ga, Bundle 3.2.1
Reporter: scott leberknight
Attachments: NotEmptyValidatorClassCastExceptionBugTest.java
The NotEmptyValidator.isValid() method throws a ClassCastException if a non-null primitive wrapper type (e.g. Long) is supplied as the argument. The method assumes that if the value is not null, is not an array, collection, or map, that it can be cast to a String, which it cannot for primitive wrappers. See attached JUnit test, which also contains a possible fix to the logic and has a test for the fix too. I put the file in the org.hibernate.validator package so it can be dropped in as-is to the Hibernate Validator codebase.
--
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
Multiple @OneToMany(fetch=FetchType.EAGER) relationships not supported
-----------------------------------------------------------------------
Key: EJB-217
URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-217
Project: Hibernate Entity Manager
Type: Bug
Versions: 3.2.0.cr1
Environment: JBoss4.0.4.GA
Reporter: Michał Borowiecki
Having more than one relationship on en entity annotated with @OneToMany(fetch=FetchType.EAGER) causes exception when deploying the ejb3 module:
org.hibernate.HibernateException: cannot simultaneously fetch multiple bags.
This bug is thoroughly explained here:
http://www.jroller.com/page/eyallupu?entry=hibernate_exception_simultaneo...
and depends on HHH-1718 "Have multiple bag fetches revert to subselect fetching for all but one of the bags"
The temporary solution in HHH-1413 - disallowing multiple bag fetches is unsuitable to ejb3 environment, because the spec does not disallow it.
--
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
Allow term position information to be stored in an index
--------------------------------------------------------
Key: HSEARCH-141
URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-141
Project: Hibernate Search
Issue Type: New Feature
Components: engine
Reporter: John Griffin
Assignee: John Griffin
The default behavior of indexing is to not store term position and offset information. Modify the @Field annotation to allow input of Field.TermVector values. This would facilitate proximity queries.
--
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
LazyInitializationException - no session or session was closed
--------------------------------------------------------------
Key: HHH-2878
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2878
Project: Hibernate3
Issue Type: Bug
Affects Versions: 3.2.5
Environment: Hibernate v 3.1.4-3.2.5, Oracle/HSQLDB/Whatever
Reporter: Paul Andrews
Attachments: testcase.zip
A LazyInitializationException is thrown for a lazy set when the items in the set can be duplicates. This is manifested in a many-to-many implemented using join table; the session is still open but the session for the collection is set to null.
The attached ZIP contains a test-case that demonstrates this.
--
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
Provide a sessionFactory close event or hook for the event listeners
--------------------------------------------------------------------
Key: HHH-2884
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2884
Project: Hibernate3
Issue Type: New Feature
Components: core
Reporter: Emmanuel Bernard
Fix For: 3.3
It can be done either:
- as an event/eventListener
- as a method that eventlisteners implement (symmetric of initialize())
The former being more flexible
--
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
Officially move to JDK 1.4
--------------------------
Key: HHH-2702
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2702
Project: Hibernate3
Issue Type: Task
Components: core
Reporter: Steve Ebersole
Assignee: Steve Ebersole
Fix For: 3.3
This includes a number of considerations, such as (1) assuming JDBC3 as a baseline, (2) using the improved collections, etc.
This will act as the grouping task for all JDK 1.4 migration tasks.
--
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