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>