About Question com.enthuware.ets.scbcd.v5.2.96 :
Posted: Thu Jun 30, 2011 10:38 am
*Class files, persistence.xml file, and orm.xml
orm.xml will always be examined because any mapping information given in orm.xml overrides the information present in the classes in the form of annotations. Class files are usually examined but are ignored when xml-mapping-metadata-complete subelement is set to true in the xml files.
Hello,
I think that this option is true (not the forth), for example
This is a class
and this is a part of orm.xml:
In this case persistent provider how to know the Author in orm.xml override the Author.class, it must examine the class file in every case to know that whether orm.xml may or may not override.
orm.xml will always be examined because any mapping information given in orm.xml overrides the information present in the classes in the form of annotations. Class files are usually examined but are ignored when xml-mapping-metadata-complete subelement is set to true in the xml files.
Hello,
I think that this option is true (not the forth), for example
This is a class
Code: Select all
public class Author extends Identifiable {
private String name;
@Column(name="ADDRESS")
private String address;
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
@Override
public String toString() {
return "Author [name=" + name + ", books=" + getBooks() + "]";
}
public void setAddress(String address) {
this.address = address;
}
public String getAddress() {
return address;
}
}
Code: Select all
<entity class="Author">
<table name="AUTHOR"></table>
</entity>