Can anyone tell me if there is the equivalent of type="true_false" when mapping a property using hibernate annotations?
Using the hbm mapping I used to have:
Code:
<property name="included" column="RUN_FLAG" type="true_false"/>
With annotations it now looks like:
Code:
@Column(name = "RUN_FLAG")
private boolean included;
I can't find any clues. Can someone please point me in the right direction?
Thanks,
Tim
Hibernate version: 3.1
Mapping documents:Code:
...
@Column(name = "RUN_FLAG")
private boolean included;
...
Full stack trace of any exception that occurs:Code:
ERROR - RequestCycle - For input string: "F"
java.lang.NumberFormatException: For input string: "F"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
at java.lang.Double.valueOf(Double.java:447)
at oracle.jdbc.driver.OracleStatement.getBooleanValue(OracleStatement.java:4500)
at oracle.jdbc.driver.OracleResultSetImpl.getBoolean(OracleResultSetImpl.java:479)
at oracle.jdbc.driver.OracleResultSet.getBoolean(OracleResultSet.java:1561)
at org.apache.tomcat.dbcp.dbcp.DelegatingResultSet.getBoolean(DelegatingResultSet.java:227)
at org.hibernate.type.BooleanType.get(BooleanType.java:23)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:113)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:102)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2046)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1371)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1299)
at org.hibernate.loader.Loader.getRow(Loader.java:1197)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:568)
at org.hibernate.loader.Loader.doQuery(Loader.java:689)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2211)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
at org.hibernate.loader.Loader.list(Loader.java:2090)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
at org.springframework.orm.hibernate3.HibernateTemplate$5.doInHibernate(HibernateTemplate.java:533)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:367)
at org.springframework.orm.hibernate3.HibernateTemplate.loadAll(HibernateTemplate.java:529)
Name and version of the database you are using:
Oracle 10g