You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Philip Aston <ph...@mail.com> on 2009/02/04 23:24:21 UTC
Re: Alternatives to annotations for metadata?
Thanks Pinaki - good to now I haven't missed anything.
Couldn't there be an orm-openjpa.xml that mirrored orm.xml, adding vendor
metadata?
- Phil
Pinaki Poddar wrote:
>
> OpenJPA specific annotations do not have a counterpart in orm.xml.
>
> The pain is obvious but that the orm.xml XSD did not allow a
> <vendor-extension> clause makes it somewhat more difficult to get these
> vendor-specific annotations in xml descriptors.
>
--
View this message in context: http://n2.nabble.com/Alternatives-to-annotations-for-metadata--tp2213505p2271989.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: Alternatives to annotations for metadata?
Posted by Pinaki Poddar <pp...@apache.org>.
Hi Philip,
> Couldn't there be an orm-openjpa.xml that mirrored orm.xml, adding
vendor metadata?
Yes, possible. Some discussion took place on this issue [1] but the thread
is not currently active. Adding a name-value under a <vendor-extension> tag
in orm.xsd perhaps would have been a straightforward route. I will check
with the JPA Expert Group to ascertain the response to such a request.
Having a mirrored 'orm-openjpa.xml' would require to match/merge tags for
the same entity, require overwriting rules etc. Doable but non-trivial.
[1] https://issues.apache.org/jira/browse/OPENJPA-125
Regards -
Pinaki
--
View this message in context: http://n2.nabble.com/Alternatives-to-annotations-for-metadata--tp2213505p2275457.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.