A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
Other Open Source Projects
Hibernate and boolean vs. integer
Joined: Jan 21, 2002
May 17, 2004 09:00:00
I am attempting to use Hibernate for the first time, and had a question about persisting a boolean value to a column with a datatype of integer.
Basically the column in the database is a smallint (Informix) and I would like to expose this as a boolean to the client as a boolean on the javabean object.
Is there a way to translate these without adding additional properties on the bean (getting the client to use the boolean and Hibernate the short)?
Any help appreciated..
It is sorta covered in the
JavaRanch Style Guide
subject: Hibernate and boolean vs. integer
JPA many-to-many with extra attribute
Advice on managing objects in requests
Hibernate Mapping Types.
How to do a Merge in a hibernate component
Queries and "column not found" error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014