Update of /cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6801/src/java/test/hibernate30
Modified Files:
Human.java Animal.java
Log Message:
XDT-1479: add query-list support
Index: Human.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30/Human.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Human.java 21 Jul 2005 15:09:25 -0000 1.4
--- Human.java 28 Jul 2005 15:00:21 -0000 1.5
***************
*** 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
--- 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"
*
* @hibernate.query-list
* name="querylist1"
* query-ref="queryref1"
*
* @hibernate.query-list
* name="querylist2"
* query-ref="queryref2"
*/
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: Animal.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30/Animal.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Animal.java 26 Jul 2005 21:40:35 -0000 1.3
--- Animal.java 28 Jul 2005 15:00:22 -0000 1.4
***************
*** 84,87 ****
--- 84,95 ----
* role = "role"
* lock-mode = "none"
+ *
+ * @hibernate.query-list
+ * name="querylist1"
+ * query-ref="queryref1"
+ *
+ * @hibernate.query-list
+ * name="querylist2"
+ * query-ref="queryref2"
*/
public class Animal extends Persistent {
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel