Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/hierarchy
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18657/src/test/java/org/xdoclet/plugin/hibernate/hierarchy
Added Files:
ChildInterface.java DeepHierarchyMapping.hbm.xml
DeepHierarchyMapping.java DependentClass.java ParentClass.java
ParentInterface.java
Log Message:
(XDP-47) Hibernate3 support merged into trunk
--- NEW FILE: DependentClass.java ---
/*
* Copyright (c) 2003
* XDoclet Team
* All rights reserved.
*/
package org.xdoclet.plugin.hibernate.hierarchy;
import java.util.Date;
/**
* @author Anatol Pomozov
*/
public class DependentClass {
private Date finishDate;
public void setFinishDate(Date finishDate) {
this.finishDate = finishDate;
}
/**
* @hibernate.property
*/
public Date getFinishDate() {
return finishDate;
}
}
--- NEW FILE: ParentClass.java ---
/*
* Copyright (c) 2003
* XDoclet Team
* All rights reserved.
*/
package org.xdoclet.plugin.hibernate.hierarchy;
/**
* @author Anatol Pomozov
*/
public class ParentClass implements ChildInterface {
public DependentClass dependentClass;
public Double getDate() {
return new Double(12);
}
/**
* @hibernate.many-to-one
*/
public DependentClass getDependentClass() {
return dependentClass;
}
public String getField() {
return "Hello, world!";
}
}
--- NEW FILE: DeepHierarchyMapping.java ---
/*
* Copyright (c) 2003
* XDoclet Team
* All rights reserved.
*/
package org.xdoclet.plugin.hibernate.hierarchy;
/**
* @author Anatol Pomozov
* @hibernate.class
*/
public class DeepHierarchyMapping extends ParentClass {
private long _id;
public void setId(long id) {
_id = id;
}
/**
* @hibernate.id unsaved-value="blurge" generator-class="native"
*/
public long getId() {
return _id;
}
}
--- NEW FILE: ChildInterface.java ---
/*
* Copyright (c) 2003
* XDoclet Team
* All rights reserved.
*/
package org.xdoclet.plugin.hibernate.hierarchy;
/**
* @author Anatol Pomozov
*/
public interface ChildInterface extends ParentInterface {
/**
* @hibernate.property
*/
Double getDate();
}
--- NEW FILE: ParentInterface.java ---
/*
* Copyright (c) 2003
* XDoclet Team
* All rights reserved.
*/
package org.xdoclet.plugin.hibernate.hierarchy;
/**
* @author Anatol Pomozov
*/
public interface ParentInterface {
/**
* @hibernate.property
*/
String getField();
}
--- NEW FILE: DeepHierarchyMapping.hbm.xml ---
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="org.xdoclet.plugin.hibernate.hierarchy.DeepHierarchyMapping">
<id name="id" type="long" unsaved-value="blurge">
<generator class="native"/>
</id>
<many-to-one name="dependentClass"/>
<property name="date"/>
<property name="field"/>
</class>
</hibernate-mapping>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits