How to completely ignore annotations for entity mapped with xml? [message #1739346] |
Sat, 30 July 2016 09:25 |
Vitaly Gorbunov Messages: 7 Registered: July 2012 |
Junior Member |
|
|
For my project I need few entities to contain only limited set of attributes and completely ignore mapped super classes.
I've added exclude-default-mappings=true and metadata-complete=true to entity mapping, however it still considers annotations from mapped super classes.
Is there a way to fix it?
My xml file example:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<entity-mappings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1" xsi:schemaLocation="http://www.eclipse.org/eclipselink/xsds/persistence/orm">
<entity class="com.mycompany.TestCompany" exclude-default-mappings="true" metadata-complete="true" name="TestCompany">
<table name="COMPANY"/>
<attributes>
<id name="uid">
<generated-value generator="TABLE_GEN" strategy="TABLE"/>
<column name="COMPANY_ID"/>
</id>
</attributes>
</entity>
</entity-mappings>
[Updated on: Sat, 30 July 2016 09:28] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03242 seconds