[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[eclipselink-users] Metamodel generation in Eclipse
|
Hi
I am testing out the
JPA2 Metamodel generation in Eclipse and it looks like that
EclipseLink's Modelgen Processor is only supporting metamodel generation
for entities defined in the same Eclipse project in which persistence.xml is
defined.
Here's my
setup
Project A:
- defines entity
class EntityA
Project
B:
- depends on Project
A, hence having EntityA on classpath
- defines entity
class EntityB
- defines
persistence.xml
- annotation
processor is switched on
The result is that
EntityB_ is generated, but not EntityA_. I have tried both annotation based
mappings and mappings in orm.xml, but the result is the same.
Is there a
way to tell EclipseLink Annotation Processor to generate metadata for all
classes on classpath? Maybe even restricting it by specifying package to scan?
Thanks.
Regards
Jaro Kuruc
Java/SQL Developer
Commerzbank AG
Corporates & Markets
Market Risk
Office
address: 30 Gresham
Street, London EC2V
7PG, United
Kingdom
Phone +44
(0)20 7475 8258
jaro.kuruc@xxxxxxxxxxxxxxx
http://www.commerzbank.com
Commerzbank Aktiengesellschaft, Frankfurt am
Main
Handelsregister/Commercial Register: Amtsgericht Frankfurt am Main, HRB 32000
Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board:
Klaus-Peter Müller
Vorstand/Board of Managing Directors: Martin
Blessing (Vorsitzender/Chairman), Frank Annuscheit, Markus Beumer, Achim Kassow, Jochen Klösges, Michael Reuther,
Stefan Schmittmann, Ulrich Sieber, Eric Strutz
This e-mail is confidential and is intended only for the person to whom it is
addressed. It may be privileged and should not be read, copied or used by
anyone other than the intended recipient. If you are not that person, you are
not permitted to make use of the information and you are requested to notify
the sender immediately that you have received it and then destroy the copy in
your possession without disclosing its contents to any person.
Commerzbank AG may monitor outgoing and incoming e-mails. By replying to this
e-mail you consent to such monitoring. We believe, but do not warrant, that
this e-mail and any attachments are virus free, but you must take full
responsibility for virus checking.
This e-mail was sent either by Commerzbank AG, London Branch, or by Commerzbank
Corporates & Markets, a division of Commerzbank AG. Commerzbank AG is a
company incorporated in the Federal Republic of Germany and registered in
England (registered number FC008139, place of business 30 Gresham Street,
London EC2V 7PG) and is authorised by Bundesanstalt fuer
Finanzdienstleistungsaufsicht (BaFin) and authorised and subject to limited
regulation by the Financial Services Authority (FSA).