openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kennedy, Dan" <dkenn...@170Systems.com>
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
 -MetaDataFactory
org.apache.openjpa.persistence.PersistenceMetaDataFactory 

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:

...
    <package>
        com.mypackage
    </package>
    <access>
        PROPERTY
    </access>
    <entity class="MvApplication">
        <id-class class="MvApplication$Id"/>
        <attributes>
            <id name="applicationId"/>
            <basic name="applicationName"/>
            <basic name="description"/>
        </attributes>
    </entity>
...

And a generated class that looks like this:

package com.markview.upgrade.data;

import java.io.*;
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?

Thanks.

-- Dan

-----Original Message-----
From: Abe White [mailto:awhite@bea.com] 
Sent: Thursday, February 01, 2007 4:59 PM
To: open-jpa-dev@incubator.apache.org
Subject: Re: ReverseMappingTool doesn't include table/column names in
entities

> 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.


Mime
View raw message