Hi,
I'm curious if it's possible to create and map new entities at Runtime?
We have an application which allows users to design new data models at
runtime. When new tables are being created in the database, we would
like to make OpenJPA aware of them. We are currently doing this in
Hibernate by
James-
It should be possible. The easiest way (and the most implementation-
agnostic) would be to simply generate the classes with the
appropriate mapping annotations, and then just load them at runtime.
The somewhat tricky part would be to ensure they get enhanced by the
system when they
like you suggested.
Thanks for your help!
James
-Original Message-
From: Marc Prud'hommeaux [mailto:[EMAIL PROTECTED] On Behalf Of
Marc Prud'hommeaux
Sent: Monday, May 14, 2007 10:30 AM
To: open-jpa-dev@incubator.apache.org
Subject: Re: Entity creation at Runtime
James-
It should
Prud'hommeaux [mailto:[EMAIL PROTECTED] On
Behalf Of
Marc Prud'hommeaux
Sent: Monday, May 14, 2007 10:30 AM
To: open-jpa-dev@incubator.apache.org
Subject: Re: Entity creation at Runtime
James-
It should be possible. The easiest way (and the most implementation-
agnostic) would be to simply
] On
Behalf Of
Marc Prud'hommeaux
Sent: Monday, May 14, 2007 10:30 AM
To: open-jpa-dev@incubator.apache.org
Subject: Re: Entity creation at Runtime
James-
It should be possible. The easiest way (and the most implementation-
agnostic) would be to simply generate the classes with the
appropriate
: Monday, May 14, 2007 1:18 PM
To: open-jpa-dev@incubator.apache.org
Subject: RE: Entity creation at Runtime
Thanks for the reply Marc.
Is there a third party tool that can generate classes with annotations?
Or is there something in OpenJPA that can do that? I noticed a
CodeGenerator class that can