The implementation interface businessobject of the teacher Class is encountered during the demonstration center project, and @ Hibernate is used in the interface. class, use @ hibernate in the class. joined-subclass-key column = "oid" and @ hibernate. joined-subclass: Only businessobject is generated when ant tasks are executed. HBM. XML, and there is no definition of teacher in it. After a while, I found a post on the Internet about the same problem and provided a patch. However, I haven't tried it. The content is as follows. (It's time to go home and continue writing at night)
Diff - U - 1 - B - P - R1. 20 Hibernatetagshandler. Java
--- Hibernatetagshandler. Java 14 Jun 2003 13 : 58 : 10 - 0000 1.20
++ Hibernatetagshandler. Java 3 Nov 2003 00 : 58 : 27 - 0000
@@ - 285 , 3 + 285 , 7 @ Public class hibernatetagshandler
}
- Else If (Clazz. getsuperclass () ! = Null && Clazz. getsuperclass (). getqualifiedname (). Equals (typename )){
+ Else If (Clazz. getsuperclass () ! = Null &&
+ Clazz. getsuperclass (). getqualifiedname (). Equals (typename ))
+ |
+ (Getcurrentclass (). isinterface () &&
+ Clazz. isimplementinginterface (typename ))){
Log. debug ( " Is a subclass " );
now we have decided not to use this patch method. We have to build the source code again, and we will not be able to use the generic package in the future. Use abstract classes instead of interfaces.