IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes CMT and Custom JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "CMT and Custom JDBC" Watch "CMT and Custom JDBC" New topic
Author

CMT and Custom JDBC

Clive Green
Greenhorn

Joined: Jun 25, 2007
Posts: 1
Hi All,
I'm working on a Stateless session bean that needs to perform container managed transactions (using EJB3/Glassfish). My problem, however, is that the data model I'm using is an EAV model (key-value pair-ish type of stuff with some meta data) and hence the attributes are not in columns but in rows (think of storing a HashMap). Of course, *ALL* of the EJB3 examples/books I have seen to date, use pojos and map the fields to columns, which is great if you have a conventional (horizontal) data model, but doesn't work for a vertical one (EAV).
So, I need to hand code my own JDBC DAO's for my objects.

My question is, how do I provide my own custom JDBC persistence code but still have it run within a CMT? Are there any books/tutorials out there that show you how to do your own persistence without all the black-box CMP type of stuff?

Any help would be greatly appreciated.

Thanks.

Clive
 
 
subject: CMT and Custom JDBC
 
Threads others viewed
custom table model and column model for JTable
EclipseLink1.1 inserts no data..
Java Blend: More information, please.
UserTransaction vs EntityTransaction and distributed transactions
How container talks to DB?
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com