Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4635/src/test/java/org/xdoclet/plugin/hibernate/pojo
Modified Files:
ArrayMapping.hbm.xml ArrayMapping.java MapMapping.hbm.xml
MapMapping.java Relation.hbm.xml Relation.java
Log Message:
(XDP-58) added support of not-found attribute to collection elements
Index: Relation.hbm.xml
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/Relation.hbm.xml,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Relation.hbm.xml 13 May 2005 07:50:46 -0000 1.13
--- Relation.hbm.xml 25 May 2005 08:01:48 -0000 1.14
***************
*** 1,5 ****
<?xml version="1.0" encoding="UTF-8"?>
! <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD
2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping default-cascade="none" auto-import="true">
--- 1,5 ----
<?xml version="1.0" encoding="UTF-8"?>
! <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD
3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping default-cascade="none" auto-import="true">
***************
*** 16,19 ****
--- 16,20 ----
property-ref="foo"
index="glarch"
+ not-found="exception"
>
</many-to-one>
Index: MapMapping.hbm.xml
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/MapMapping.hbm.xml,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** MapMapping.hbm.xml 17 May 2005 12:42:54 -0000 1.10
--- MapMapping.hbm.xml 25 May 2005 08:01:48 -0000 1.11
***************
*** 29,33 ****
<column name="bar"/>
</index>
! <one-to-many class="org.xdoclet.plugin.hibernate.pojo.Simple"/>
</map>
<map name="oneToManyWithMultipleKeys" table="blurge">
--- 29,33 ----
<column name="bar"/>
</index>
! <one-to-many class="org.xdoclet.plugin.hibernate.pojo.Simple"
not-found="exception"/>
</map>
<map name="oneToManyWithMultipleKeys" table="blurge">
***************
*** 40,44 ****
<column name="bar"/>
</index>
! <one-to-many class="org.xdoclet.plugin.hibernate.pojo.Simple"/>
</map>
</class>
--- 40,44 ----
<column name="bar"/>
</index>
! <one-to-many class="org.xdoclet.plugin.hibernate.pojo.Simple"
not-found="ignore"/>
</map>
</class>
Index: MapMapping.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/MapMapping.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** MapMapping.java 17 May 2005 12:42:54 -0000 1.7
--- MapMapping.java 25 May 2005 08:01:48 -0000 1.8
***************
*** 64,68 ****
* @hibernate.index-column name="foo"
* @hibernate.index-column name="bar"
! * @hibernate.one-to-many class="org.xdoclet.plugin.hibernate.pojo.Simple"
*/
public Map getOneToMany() {
--- 64,68 ----
* @hibernate.index-column name="foo"
* @hibernate.index-column name="bar"
! * @hibernate.one-to-many
class="org.xdoclet.plugin.hibernate.pojo.Simple" not-found="exception"
*/
public Map getOneToMany() {
***************
*** 80,84 ****
* @hibernate.key-column name="column1"
* @hibernate.key-column name="column2"
! * @hibernate.one-to-many class="org.xdoclet.plugin.hibernate.pojo.Simple"
*/
public Map getOneToManyWithMultipleKeys() {
--- 80,84 ----
* @hibernate.key-column name="column1"
* @hibernate.key-column name="column2"
! * @hibernate.one-to-many
class="org.xdoclet.plugin.hibernate.pojo.Simple" not-found="ignore"
*/
public Map getOneToManyWithMultipleKeys() {
Index: ArrayMapping.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/ArrayMapping.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ArrayMapping.java 26 Apr 2005 07:00:17 -0000 1.1
--- ArrayMapping.java 25 May 2005 08:01:48 -0000 1.2
***************
*** 43,47 ****
* @hibernate.key-column name="id"
* @hibernate.index column="i"
! * @hibernate.many-to-many
class="org.xdoclet.plugin.hibernate.pojo.ItemArray" fetch="select"
* @hibernate.column name="item" length="36"
*/
--- 43,47 ----
* @hibernate.key-column name="id"
* @hibernate.index column="i"
! * @hibernate.many-to-many
class="org.xdoclet.plugin.hibernate.pojo.ItemArray" fetch="select"
not-found="ignore"
* @hibernate.column name="item" length="36"
*/
Index: ArrayMapping.hbm.xml
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/ArrayMapping.hbm.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ArrayMapping.hbm.xml 26 Apr 2005 07:00:17 -0000 1.1
--- ArrayMapping.hbm.xml 25 May 2005 08:01:48 -0000 1.2
***************
*** 18,22 ****
</key>
<index column="i"/>
! <many-to-many class="org.xdoclet.plugin.hibernate.pojo.ItemArray"
fetch="select">
<column name="item" length="36"/>
</many-to-many>
--- 18,22 ----
</key>
<index column="i"/>
! <many-to-many class="org.xdoclet.plugin.hibernate.pojo.ItemArray"
fetch="select" not-found="ignore">
<column name="item" length="36"/>
</many-to-many>
Index: Relation.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/Relation.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Relation.java 6 May 2005 07:37:26 -0000 1.9
--- Relation.java 25 May 2005 08:01:48 -0000 1.10
***************
*** 34,38 ****
/**
* @hibernate.many-to-one cascade="none" not-null="true" column="aclid"
! * class="com.infodesire.infobit.dao.AclImpl" property-ref="foo"
index="glarch" foreign-key="glum"
*/
public Simple getOneSide() {
--- 34,38 ----
/**
* @hibernate.many-to-one cascade="none" not-null="true" column="aclid"
! * class="com.infodesire.infobit.dao.AclImpl" property-ref="foo"
index="glarch" foreign-key="glum" not-found="exception"
*/
public Simple getOneSide() {
-------------------------------------------------------
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-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits