Bug 138622 - [Metadata Conversion] Convert annotated JPA meta data to orm.xml
Summary: [Metadata Conversion] Convert annotated JPA meta data to orm.xml
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 0.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on: 353149
Blocks:
  Show dependency tree
 
Reported: 2006-04-26 09:48 EDT by Kevin Sutter CLA
Modified: 2013-09-04 12:06 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Sutter CLA 2006-04-26 09:48:49 EDT
Paul Fullbright is working the management of the persistence.xml file for the 0.5 release.  I would also like to see the management of a generated orm.xml file.  Per a discussion on the Dali forum, Paul suggested writing an Enhancement request.  Here's the wording from my original post on the subject:

"What I am looking for is the ability to generate the orm.xml from the annotated source.  The annotated source is what I would be using for development.  I would tweak the annotations until I got the desired functionality.  But, once I  go into production with this "Persistence Unit" with all of the associated classes and jars, I don't want to have to modify source and re-build just to get some different behaviour.  At this point, I would like to deal with xml files to modify the configuration.

It would be great if Dali could generate the "base" xml files for me.  I've done the annotations in the code, now create the corresponding xml file(s) so that I know what I have as the base configuration (template, if you will)."

Hope this is a sufficient description.  Thanks.

Kevin
Comment 1 Adrian Price CLA 2006-07-23 17:56:31 EDT
Good day Dali,

I guess you guys know this already but it seems to me that Dali 0.5 basically ignores the settings in orm.xml. There doesn't seem to be a way to tell it to store settings in orm.xml either. My use case involves JPA-enabling EMF-generated POJIs so I don't want to use the annotation approach, nice though it is.

Thanks,

Adrian Price.

(In reply to comment #0)
> Paul Fullbright is working the management of the persistence.xml file for the
> 0.5 release.  I would also like to see the management of a generated orm.xml
> file.  Per a discussion on the Dali forum, Paul suggested writing an
> Enhancement request.  Here's the wording from my original post on the subject:
> 
> "What I am looking for is the ability to generate the orm.xml from the
> annotated source.  The annotated source is what I would be using for
> development.  I would tweak the annotations until I got the desired
> functionality.  But, once I  go into production with this "Persistence Unit"
> with all of the associated classes and jars, I don't want to have to modify
> source and re-build just to get some different behaviour.  At this point, I
> would like to deal with xml files to modify the configuration.
> 
> It would be great if Dali could generate the "base" xml files for me.  I've
> done the annotations in the code, now create the corresponding xml file(s) so
> that I know what I have as the base configuration (template, if you will)."
> 
> Hope this is a sufficient description.  Thanks.
> 
> Kevin
> 
Comment 2 Adrian Price CLA 2006-07-24 12:39:54 EDT
Oh - one further thing - 'Generate DDL...' doesn't appear to work if the mappings are all in orm.xml. The command fails silently with no indication as to what went wrong (no error log entries either).

Thanks,

Adrian.
Comment 3 Neil Hauge CLA 2007-03-14 18:03:07 EDT
This enhancement will be considered for 1.0.
Comment 4 Neil Hauge CLA 2007-05-02 18:30:52 EDT
Adjusting the title for this request to more accurately reflect its nature.  We are delivering the management of orm.xml with the 1.0 release, but this is a specific request for a meta data conversion facility.

We still like the idea of this enhancement but it doesn't look like we will have time to get it into 1.0 at this point.
Comment 5 Neil Hauge CLA 2011-07-01 16:25:16 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 6 Nan Li CLA 2011-07-26 14:26:37 EDT
Moving JPA global metadata (queries, generators, and converters) will be tracked in bug 353149.