Update of /cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8870/src/java/test/hibernate30
Modified Files:
Human.java Lizard.java Reptile.java
Log Message:
XDT-1420: support union-subclass with @hibernate.union-subclass
Index: Human.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30/Human.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Human.java 1 Jun 2005 18:16:56 -0000 1.3
--- Human.java 21 Jul 2005 15:09:25 -0000 1.4
***************
*** 1 ****
! package test.hibernate30;
/**
* @hibernate.joined-subclass entity-name="HUMANS"
* proxy="test.hibernate30.Human"
* table="HUMANS"
* schema="THINGS"
* catalog="CAT"
* subselect="sql expression"
* dynamic-update="true"
* dynamic-insert="true"
* select-before-update="true"
* extends="test.hibernate30.Animal"
* lazy="true"
* abstract="false"
* persister="my.PersisterClass"
* check="sql expression 2"
* batch-size="10"
* node="human"
* @hibernate.key column="ANIMAL_ID" property-ref="property ref"
* foreign-key="FOREIGN_KEY" on-delete="cascade"
* not-null="true" update="true" unique="true"
* @hibernate.column name="KEY_COLUMN_1"
* @hibernate.column name="KEY_COLUMN_2"
* @hibernate.meta attribute="meta attribute" value="meta value"
* @hibernate.subselect "subselect sql expression"
* @hibernate.synchronize table="SYNC_TABLE_1"
* @hibernate.synchronize table="SYNC_TABLE_2"
* @hibernate.loader query-ref="query ref"
* @hibernate.sql-insert callable="true" value="sql insert"
* @hibernate.sql-delete callable="true" value="sql delete"
* @hibernate.sql-update value="sql update"
*/
public class Human extends Animal {
private Name name;
private String occupation;
/**
* Constructor for Human.
*/
public Human() {
super();
}
/**
* @hibernate.component
*/
public Name getName() {
return name;
}
public void setName(Name name) {
this.name = name;
}
/**
* @hibernate.property
*/
public String getOccupation() {
return occupation;
}
public void setOccupation(String occupation) {
this.occupation = occupation;
}
}
\ No newline at end of file
--- 1 ----
! package test.hibernate30;
/**
* @hibernate.union-subclass entity-name="HUMANS"
* proxy="test.hibernate30.Human"
* table="HUMANS"
* schema="THINGS"
* catalog="CAT"
* subselect="sql expression"
* dynamic-update="true"
* dynamic-insert="true"
* select-before-update="true"
* extends="test.hibernate30.Animal"
* lazy="true"
* abstract="false"
* persister="my.PersisterClass"
* check="sql expression 2"
* batch-size="10"
* node="human"
* @hibernate.key column="ANIMAL_ID" property-ref="property ref"
* foreign-key="FOREIGN_KEY" on-delete="cascade"
* not-null="true" update="true" unique="true"
* @hibernate.column name="KEY_COLUMN_1"
* @hibernate.column name="KEY_COLUMN_2"
* @hibernate.meta attribute="meta attribute" value="meta value"
* @hibernate.subselect "subselect sql expression"
* @hibernate.synchronize table="SYNC_TABLE_1"
* @hibernate.synchronize table="SYNC_TABLE_2"
* @hibernate.loader query-ref="query ref"
* @hibernate.sql-insert callable="true" value="sql insert"
* @hibernate.sql-delete callable="true" value="sql delete"
* @hibernate.sql-update value="sql update"
*/
public class Human extends Animal {
private Name name;
private String occupation;
/**
* Constructor for Human.
*/
public Human() {
super();
}
/**
* @hibernate.component
*/
public Name getName() {
return name;
}
public void setName(Name name) {
this.name = name;
}
/**
* @hibernate.property
*/
public String getOccupation() {
return occupation;
}
public void setOccupation(String occupation) {
this.occupation = occupation;
}
}
\ No newline at end of file
Index: Lizard.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30/Lizard.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Lizard.java 2 May 2005 14:36:59 -0000 1.1
--- Lizard.java 21 Jul 2005 15:09:26 -0000 1.2
***************
*** 4,11 ****
* @author Administrator
*
! * @hibernate.joined-subclass
! * table="LIZARDS"
! * @hibernate.joined-subclass-key
! * column="ANIMAL_ID"
*/
public class Lizard extends Reptile {
--- 4,12 ----
* @author Administrator
*
! * @hibernate.union-subclass
! * table="LIZARDS"
! *
! * @hibernate.key
! * column="ANIMAL_ID"
*/
public class Lizard extends Reptile {
Index: Reptile.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30/Reptile.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Reptile.java 2 May 2005 14:36:59 -0000 1.1
--- Reptile.java 21 Jul 2005 15:09:26 -0000 1.2
***************
*** 2,8 ****
/**
! * @hibernate.joined-subclass
* table="REPTILES"
! * @hibernate.joined-subclass-key
* column="ANIMAL_ID"
*/
--- 2,8 ----
/**
! * @hibernate.union-subclass
* table="REPTILES"
! * @hibernate.key
* column="ANIMAL_ID"
*/
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel