Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CMT and Custom JDBC  RSS feed

Clive Green
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!