[hibernate-issues] [Hibernate-JIRA] Updated: (ANN-650) Explicitly disallow @Version on @Embedded and throw meaningful Exception
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Wed Oct 31 15:09:31 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard updated ANN-650:
---------------------------------
Fix Version/s: (was: 3.3.1.beta1)
3.3.1
> Explicitly disallow @Version on @Embedded and throw meaningful Exception
> ------------------------------------------------------------------------
>
> Key: ANN-650
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-650
> Project: Hibernate Annotations
> Issue Type: Improvement
> Components: binder
> Affects Versions: 3.3.0.ga
> Environment: Hibernate Annotations 3.3.0.GA
> Hibernate 3.2.2
> Hibernate EntityManager 3.3.1.GA
> Reporter: Chris Bredesen
> Priority: Minor
> Fix For: 3.3.1
>
>
> The above situation should be explicitly checked for and a meaningful exception thrown. Currently, this configuration blows up with the following trace:
> java.lang.ArrayIndexOutOfBoundsException: -66
> at org.hibernate.persister.entity.AbstractEntityPersister.checkVersion(AbstractEntityPersister.java:1855)
> at org.hibernate.persister.entity.AbstractEntityPersister.generateUpdateString(AbstractEntityPersister.java:1811)
> at org.hibernate.persister.entity.AbstractEntityPersister.generateUpdateString(AbstractEntityPersister.java:1777)
> at org.hibernate.persister.entity.AbstractEntityPersister.postConstruct(AbstractEntityPersister.java:2930)
> at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:409)
> at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
> at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
> at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730)
--
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