Hi,
Can you please sent me an example in which the mapping to a certain table is
done in persistence.xml?
I use orm.xml to map the class to a certain table:
<entity class="datamodel.Person">
<table name="MYAPPLICATION.PEOPLETABLE"/>
<attributes>
<id name="id" />
<basic name="firstName" />
<basic name="lastName" />
<transient name="nonsenseField" />
</attributes>
</entity>
I read that I have to do the same mapping in persistence.xml in the class
but I failed to find an example to get the right tag.
<class>datamodel.Person</class>
If I run this without this setting I receive the message:
Could not locate metadata for the class using alias "
MYAPPLICATION.PEOPLETABLE".
Best regards, Lars