-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: oracle boolean values
PostPosted: Fri Sep 03, 2004 7:05 am 
Newbie

Joined: Mon Feb 02, 2004 4:18 pm
Posts: 16
I'm having a problem mapping a boolean type to a CHAR(1) field in an Oracle database. The mapping file was taken from an old MySQL based application, I reckon the problem might be the type of the column in the DDL, but wouldn't the substitution in the hibernate.cfg.xml solve that?

Any help would be greatly appreciated

TIA,



Hibernate version = 2.1.4

Mapping <property column="VISIBLE" length="1" name="visible" not-null="false" type="boolean"/>

From hibernate.cfg.xml = <property name="query.substitutions">true 1, false 0</property>


Full stack trace of any exception that occurs:

common.dao.DAOException: net.sf.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of xxxxxx.ElementCore.setVisible
at common.dao.HibernateDAO.handleException(HibernateDAO.java:269)
at common.dao.HibernateDAO.load(HibernateDAO.java:537)
at common.dao.HibernateDAO.load(HibernateDAO.java:521)
at common.delegate.GenericDelegate.load(GenericDelegate.java:28)
at common.taglib.LoadTag.doStartTag(LoadTag.java:95)

Name and version of the database you are using: Oracle 8.1.6

Debug level Hibernate log excerpt: info


Top
 Profile  
 
 Post subject: thx
PostPosted: Fri Sep 03, 2004 9:27 am 
Newbie

Joined: Mon Feb 02, 2004 4:18 pm
Posts: 16
can any even point me in the right direction in terms of the documentation?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 03, 2004 9:37 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
http://www.hibernate.org/189.html
may help you

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.