openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kennedy, Dan" <>
Subject RE: ReverseMappingTool doesn't include table/column names in entities
Date Mon, 05 Feb 2007 16:23:08 GMT
Yes, I'm definitely looking at new output.  Perhaps it has to do with
the arguments I am using:

 -pkg com.mypackage
 -d .\src
 -useBuiltinIdentityClass false 
 -innerIdentityClasses true 
 -inverseRelations false 
 -DBDictionary org.apache.openjpa.jdbc.sql.OracleDictionary

I am new to openjpa so it's very possible I'm doing something wrong but
I can figure it out.

With the arguments above I get an ORM.XML that looks like this:

    <entity class="MvApplication">
        <id-class class="MvApplication$Id"/>
            <id name="applicationId"/>
            <basic name="applicationName"/>
            <basic name="description"/>

And a generated class that looks like this:


import java.util.*;

 * Auto-generated by:
 * org.apache.openjpa.jdbc.meta.ReverseMappingTool$ReverseCodeGenerator
public class MvApplication {
	private int applicationId;
	private String applicationName;
	private String description;

	public MvApplication() {

	public MvApplication(int applicationId) {
		this.applicationId = applicationId;

I would expect the table and column names either to show up in ORM.XML
or as annotation in my generated class.  Is that wrong?


-- Dan

-----Original Message-----
From: Abe White [] 
Sent: Thursday, February 01, 2007 4:59 PM
Subject: Re: ReverseMappingTool doesn't include table/column names in

> I upgraded to "openjpa-0.9.7-incubating-SNAPSHOT" and still get the 
> same results.  By the way, thanks for your help so far.

I get table and column names when I run the tool.  Are you sure you
aren't looking at old output?  Can someone else attempt to reproduce
this problem?
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

View raw message