Using
import org.hibernate.annotations.Table; @Table(appliesTo="Datas_De") public class Datas_De implements java.io.Serializable
crashes, if * appliesTo * is not exact equal to the class name.
This can be seen in package org.hibernate.cfg.annotations; in class EntityBinder in method public void processComplementaryTableDefinitions(org.hibernate.annotations.Table table) at if ( pcTable.getQuotedName().equals( appliedTable ) ) { ..............
So the * appliedTable * value MUST BE equal to pcTable.getQuotedName() for correct working. I think that is not correct to use the annotation.
(Also the exception after that prints not the correct reason back) |
|