[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-633) Reverse engineered VERSION columns cause ClassCastException

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Fri May 7 12:09:49 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36970#action_36970 ] 

Max Rydahl Andersen commented on HBX-633:
-----------------------------------------

as written earlier: " you can work around it via a custom reveng strategy that just returns false for useColumnForOptimisticLock."

> Reverse engineered VERSION columns cause ClassCastException
> -----------------------------------------------------------
>
>                 Key: HBX-633
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-633
>             Project: Hibernate Tools
>          Issue Type: Bug
>    Affects Versions: 3.1beta4
>         Environment: Oracle 8i, ojdbc14.jar
>            Reporter: Gabor Kincses
>
> Exception in thread "main" java.lang.ClassCastException: org.hibernate.type.BigDecimalType
> 	at org.hibernate.tuple.PropertyFactory.buildVersionProperty(PropertyFactory.java:83)
> 	at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:157)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
> 	at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
> 	at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
> 	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:216)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
> 	at com.paypal.bdo.test.Hibernate101.main(Hibernate101.java:37)
> I guess the code tries to cast the type to VersionType.

-- 
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