Update of /cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26797/src/java/test/hibernate30
Modified Files:
Order.java Persistent.java
Log Message:
XDT-1473: make @hibernate.id map to primitive ID, add @hibernate.composite-id
and @hibernate.generate tags, make all map more closely to Hibernate DTD
Index: Order.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30/Order.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Order.java 1 Jun 2005 18:17:07 -0000 1.2
--- Order.java 20 Jul 2005 17:50:16 -0000 1.3
***************
*** 7,12 ****
* @author Administrator
*
- * @hibernate.jcs-cache
- * usage="read-write"
* @hibernate.class
* table="ORDERS"
--- 7,10 ----
Index: Persistent.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30/Persistent.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Persistent.java 2 May 2005 14:36:59 -0000 1.1
--- Persistent.java 20 Jul 2005 17:50:16 -0000 1.2
***************
*** 1,81 ****
! package test.hibernate30;
!
! import java.util.Date;
!
! /**
! * @author Administrator
! */
! public abstract class Persistent {
!
! private Long id;
! private int version;
! private Date created;
!
! /**
! * Constructor for Persistent.
! */
! public Persistent() {
! super();
! }
!
! /**
! * @hibernate.id
! * unsaved-value="null"
! * generator-class="sequence"
! * @hibernate.generator-param
! * name="table"
! * value="HIVAL"
! * @hibernate.generator-param
! * name="column"
! * value="NEXT"
! * @return Long
! */
! public Long getId() {
! return id;
! }
!
! /**
! * Sets the id.
! * @param id The id to set
! */
! public void setId(Long id) {
! this.id = id;
! }
!
! /**
! * @hibernate.version
! * @return int
! */
! public int getVersion() {
! return version;
! }
!
! /**
! * Sets the version.
! * @param version The version to set
! */
! public void setVersion(int version) {
! this.version = version;
! }
!
! /**
! * @hibernate.property
! * update="false"
! * insert="true"
! * type="timestamp"
! * Returns the created.
! * @return Date
! */
! public Date getCreated() {
! return created;
! }
!
! /**
! * Sets the created.
! * @param created The created to set
! */
! public void setCreated(Date created) {
! this.created = created;
! }
!
! }
--- 1 ----
! package test.hibernate30;
import java.util.Date;
/**
* @author Administrator
*/
public abstract class Persistent {
private Long id;
private int version;
private Date created;
/**
* Constructor for Persistent.
*/
public Persistent() {
super();
}
/**
* @hibernate.id unsaved-value="null"
* @hibernate.generator class="sequence"
* @hibernate.param name="table" value="HIVAL"
* @hibernate.param name="column" value="NEXT"
*/
public Long getId() {
return id;
}
/**
* Sets the id.
* @param id The id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* @hibernate.version
* @return int
*/
public int getVersion() {
return version;
}
/**
* Sets the version.
* @param version The version to set
*/
public void setVersion(int version) {
this.version = version;
}
/**
* @hibernate.property
* update="false"
* insert="true"
* type="timestamp"
* Returns the created.
* @return Date
*/
public Date getCreated() {
return created;
}
/**
* Sets the created.
* @param created The created to set
*/
public void setCreated(Date created) {
this.created = created;
}
}
\ No newline at end of file
-------------------------------------------------------
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