I recently came across OpenJpa, and it looks like it might be a good fit
for my application (well actually I have a number of similar apps).  I had
previously looked at using Sql2Java but that is not following standards
(JPA) and as a project seems to be come and go.

But on first inspection there were a couple of things that I could not
work out how to do, mainly with ReverseMappingTool (I have existing DBs
to use).

1) I need the beans that are generated to have PropertyChange support,
but I can not find an option that enables this.  Although I am not using this
in an EJB environment, given that EJBs are a large part of openjpa's 
existance this seems odd.  I actually need PropertyChange support as I am
using BeansBinding (JSR-296).

2) I need the ability for the generated bean to be declared as extending
an existing class.  

Now with both of these I could go in and modify the generated source code
myself, but in at least one case I have around 100 tables and the thought
of this not being an automated process is not good.

If neither of these are possible in the existing code, is there any 
objection to my adding both of these and submitting a patch?  If this is
the route I am to follow, can anyone point me in the right direction as to
where to look for the bits of ReverseMappingTool that generate the getters and
setters, and generate the class header?

David

Reply via email to