Re: Need to map a strange table structure

2009-05-12 Thread Jari Fredriksson
I am building out an object model and services for an existing relational model and the table structure is a little strange and I am having trouble with the object mapping. Here are the details We have 2 tables company with primary key id 12M_company_venue with columns

Re: Audit log with OpenJPA

2011-07-07 Thread Jari Fredriksson
7.7.2011 14:05, Bengt Rodehav kirjoitti: I'm using OpenJPA for persistence and would like to audit log any changes made to my entities. I serialize the objects to JSON (with Gson) and store them in a separate table in the database. Since the audit log needs to have the correct id's, the audit

Re: Audit log with OpenJPA

2011-07-07 Thread Jari Fredriksson
How is your JPA accessed? I have done JPA, and Audit logging on top of it, but it was into XML files, and performed in a EJB3 Session Bean. The JPA objects were plain simple, but they were all accessed via a Session Bean Facade. I did it with XML because boss wanted so, but could have been