[Hibernate-JIRA] Created: (HV-551) @Size doesn't work on List with bounded wildcard
by Emerson Farrugia (JIRA)
@Size doesn't work on List with bounded wildcard
------------------------------------------------
Key: HV-551
URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-551
Project: Hibernate Validator
Issue Type: Bug
Affects Versions: 4.2.0.Final
Reporter: Emerson Farrugia
When I put @Size on a List<? extends Foo>, I get a 'javax.validation.UnexpectedTypeException: No validator could be found for type: java.util.List<? extends Foo>' exception.
It looks like ConstraintTree.findSuitableValidatorTypes() doesn't consider org.hibernate.validator.constraints.impl.SizeValidatorForCollection to be a suitable type.
I can't really debug further because the TypeUtils import is wrong in the Maven -sources artifact. The source code says 'import com.googlecode.jtype.TypeUtils;' but that class isn't on the classpath. It's probably been changed to org.hibernate.validator.jtype.TypeUtils, but the code for that class isn't packaged.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[Hibernate-JIRA] Created: (HHH-7113) NaturalIdLoadAccess not properly working on mutable NaturalId's
by Guenther Demetz (JIRA)
NaturalIdLoadAccess not properly working on mutable NaturalId's
---------------------------------------------------------------
Key: HHH-7113
URL: https://hibernate.onjira.com/browse/HHH-7113
Project: Hibernate ORM
Issue Type: Bug
Components: core
Affects Versions: 4.1.0
Environment: Hibernate4.1.0, db independent (HSQLDB used in attached testcase)
Reporter: Guenther Demetz
Attachments: TestCaseModifieableNaturalId.jar
After updating the value of a mutable NaturalId, the entity object can be retrieved with the new value, but also with the old value.
assertNotSame(session.bySimpleNaturalId(C.class).load("1"), session.bySimpleNaturalId(C.class).load("3")); --> failing
See attached testcase:
On deletions the internal NaturalId cache is synchronized properly (testDeleteNaturalId) but not on modifications (testModifieableNaturalId)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months