Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

EJB3: Mapping a Boolean

cpuffaltNov 21 2005 — edited Dec 9 2005
Hi...

I posted this question to the OC4J forum last week but didn't get a response. Hopefully someone here will have an answer as Toplink is providing the Oracle EJB3 implementation...

Question:

Can anyone tell me how I go about mapping a Boolean field in an EJB3 CMP entity bean? I'm trying to map to a database column that's CHAR(1) containing Y/N/null. As far as I can tell the EJB3 spec doesn't address this. Hibernate allows the developer to specify a strategy for mapping object types like this (and I assume, Oracle TopLink does as well) but how do I do this within the EJB3 standard? Failing that, how can I do this using TopLink in a EJB3 entity bean?

Thanks,
Corey
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2006
Added on Nov 21 2005
12 comments
1,980 views