Entity creation at Runtime

2007-05-14 Thread James Hang
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

Re: Entity creation at Runtime

2007-05-14 Thread Marc Prud'hommeaux
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

RE: Entity creation at Runtime

2007-05-14 Thread James Hang
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

Re: Entity creation at Runtime

2007-05-14 Thread Marc Prud'hommeaux
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

Re: Entity creation at Runtime

2007-05-14 Thread Patrick Linskey
] 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

RE: Entity creation at Runtime

2007-05-14 Thread Pinaki Poddar
: 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