Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread linda rae
I apologize if this question has been previously asked and answered. I have googled for an answer with no luck. I have been requested to use OpenJPA on a project. The tool appears straight forward and works well, I have ran the reverse engineering example on my own DB - it works great.

RE: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Phill Moran
I am not sure that it will annotate your exiting code but (I think) it will make an external mapping file for you or generate the annotated classes from the ground up. Check out the MappingTool class/docs -Original Message- From: linda rae [mailto:[EMAIL PROTECTED] Sent: May 16, 2007

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Michael Dick
That's what I've found too. The reversemapping tool will create new java files based on the database tables, and provide an orm.xml file. No annotations though. You can always add them based on the generated orm.xml file although that might be easier said than done if you have a lot of entities.

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Marc Prud'hommeaux
That is correct: the reversemappingtool only currently supports generating an orm.xml file. We would like to add support for generating annotations someday, but it is not there yet. Take a look at the reversemapping example in a recent openjpa snapshot for an example of running the

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Patrick Linskey
Also, FWIW, the BEA Workshop tool (eclipse-based) will reverse-generate classes from a database as well, and supports putting the metadata into annotations. -Patrick On 5/16/07, Marc Prud'hommeaux [EMAIL PROTECTED] wrote: That is correct: the reversemappingtool only currently supports

Re: Embedding OpenJPA

2007-05-16 Thread Dennis Thrysøe
Patrick Linskey wrote: This means that your container would be responsible for EntityManager lifecycle and potentially for transaction control. It also means that you'd interact with OpenJPA via the PersistenceProvider.createContainerEntityManagerFactory() API. In such a scenario, you (the

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Gokhan Ergul
Marc Prud'hommeaux wrote: That is correct: the reversemappingtool only currently supports generating an orm.xml file. We would like to add support for generating annotations someday, but it is not there yet. Would you guys be interested in getting donations in that area? We do have our

Re: Embedding OpenJPA

2007-05-16 Thread Patrick Linskey
That sounds like the right way to do it. So my container would, on startup, instantiate OpenJPA's PersistenceProviderImpl, and invoke createContainerEntityManagerFactory() with a PersistenceUnitInfo that I implement? Yes. Note that OpenJPA already has an PUInfo implementation that you might

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Patrick Linskey
Would you guys be interested in getting donations in that area? Certainly! We do have our homegrown solution that does that (along with some other goodies as well). It's currently based on our metadata representation reverse-engineered from the database schema, it'd be nice (read: more

Re: JNDI lookup in OpenJPA.

2007-05-16 Thread Patrick Linskey
Hi, Are you writing this in an EJB, or some other artifact type? -Patrick On 5/14/07, Murali [EMAIL PROTECTED] wrote: Hi, I am new to OpenJPA technology. I am having problems while performing JNDI lookup for the bean resources to get the EntityManagerFactory instance. I am trying to

Re: Proposed Board Resolution: Graduate OpenJPA as a Top Level Project

2007-05-16 Thread Craig L Russell
Hi Eddie, Thanks for being our eyes and ears at the board meeting. How'd it go? Craig On May 14, 2007, at 9:23 AM, Eddie O'Neil wrote: Thanks for taking care of this, Craig. I'll attend the Board meeting Wednesday in case any questions about this come up. Eddie On 5/13/07, Craig L

[jira] Reopened: (OPENJPA-148) Parsing exception while using an exploded archive

2007-05-16 Thread David Jencks (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Jencks reopened OPENJPA-148: -- Some more experience indicates my previous patch suffers from at least 2 problems: - NPE if

[jira] Updated: (OPENJPA-148) Parsing exception while using an exploded archive

2007-05-16 Thread David Jencks (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Jencks updated OPENJPA-148: - Attachment: OPENJPA-148-2.patch Attached patch fixes the 2 additional issues I've found.

[jira] Created: (OPENJPA-239) Option for the reverse mapping tool to generate mapping annotations

2007-05-16 Thread Marc Prud'hommeaux (JIRA)
Option for the reverse mapping tool to generate mapping annotations --- Key: OPENJPA-239 URL: https://issues.apache.org/jira/browse/OPENJPA-239 Project: OpenJPA Issue Type: New

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Marc Prud'hommeaux
I've gone ahead and created https://issues.apache.org/jira/browse/ OPENJPA-239 in order to track comments and patches for this issue. On May 16, 2007, at 12:56 PM, Patrick Linskey wrote: Would you guys be interested in getting donations in that area? Certainly! We do have our homegrown

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Gokhan Ergul
Marc, Patrick, What would be the correct medium to discuss various design/implementation details? This mailing list / jira or somewhere else? Gokhan. Marc Prud'hommeaux wrote: I've gone ahead and created https://issues.apache.org/jira/browse/OPENJPA-239 in order to track comments and

[jira] Created: (OPENJPA-240) Persistent field mappings to database supported XML columns

2007-05-16 Thread Catalina Wei (JIRA)
Persistent field mappings to database supported XML columns --- Key: OPENJPA-240 URL: https://issues.apache.org/jira/browse/OPENJPA-240 Project: OpenJPA Issue Type: New Feature

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Marc Prud'hommeaux
IMO, mailing list is probably good for discussing strategies and techniques. JIRA reports are good for providing implementation summaries and proposed patches. On May 16, 2007, at 4:58 PM, Gokhan Ergul wrote: Marc, Patrick, What would be the correct medium to discuss various design/

[jira] Resolved: (OPENJPA-233) Top level POM declares a compile-time dependency on JUnit

2007-05-16 Thread Craig Russell (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Craig Russell resolved OPENJPA-233. --- Resolution: Fixed Assignee: Craig Russell checked in patch. Top level POM declares

Re: JNDI lookup in OpenJPA.

2007-05-16 Thread Murali
Hi Patrick Linskey, We are not writing the OpenJPA code in EJB. Our Application is basically using Hibernate code for persistence D/B operations. Since, Hibernate is having LGPL licensing terms we are trying to replace Hibernate with OpenJPA which is not having any Licensing issues. We are