Update of /cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate20
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25449/samples/src/java/test/hibernate20
Modified Files:
Human.java
Log Message:
small samples updates
Index: Human.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate20/Human.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Human.java 2 May 2005 14:36:59 -0000 1.1
--- Human.java 1 Jun 2005 18:17:07 -0000 1.2
***************
*** 1,58 ****
! package test.hibernate20;
!
! /**
! * @author Administrator
! *
! * @hibernate.joined-subclass
! * table="HUMANS"
! * dynamic-update="true"
! * @hibernate.joined-subclass-key
! * column="ANIMAL_ID"
! */
! public class Human extends Animal {
!
! private Name name;
! private String occupation;
!
! /**
! * Constructor for Human.
! */
! public Human() {
! super();
! }
!
! /**
! * @hibernate.component
! * Returns the name.
! * @return Name
! */
! public Name getName() {
! return name;
! }
!
! /**
! * Sets the name.
! * @param name The name to set
! */
! public void setName(Name name) {
! this.name = name;
! }
!
! /**
! * @hibernate.property
! * Returns the occupation.
! * @return String
! */
! public String getOccupation() {
! return occupation;
! }
!
! /**
! * Sets the occupation.
! * @param occupation The occupation to set
! */
! public void setOccupation(String occupation) {
! this.occupation = occupation;
! }
!
! }
--- 1 ----
! package test.hibernate20;
/**
* @author Administrator
*
* @hibernate.joined-subclass
* table="HUMANS"
* dynamic-update="true"
* @hibernate.joined-subclass-key
* column="ANIMAL_ID"
*/
public class Human extends Animal {
private Name name;
private String occupation;
/**
* Constructor for Human.
*/
public Human() {
super();
}
/**
* @hibernate.component
* Returns the name.
* @return Name
*/
public Name getName() {
return name;
}
/**
* Sets the name.
* @param name The name to set
*/
public void setName(Name name) {
this.name = name;
}
/**
* @hibernate.property
* Returns the occupation.
* @return String
*/
public String getOccupation() {
return occupation;
}
/**
* Sets the occupation.
* @param occupation The occupation to set
*/
public void setOccupation(String occupation) {
this.occupation = occupation;
}
}
\ No newline at end of file
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel