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-serv24356/src/test/java/org/xdoclet/plugin/hibernate/pojo
Modified Files:
ComponentMapping.java CompositeMapping.java SetMapping.java
Simple.java
Added Files:
CompositeMapKeyMapping.hbm.xml CompositeMapKeyMapping.java
Log Message:
(XDP-55) Added support of @hibernate.composite-map-key
--- NEW FILE: CompositeMapKeyMapping.java ---
/*
* Copyright (c) 2003
* XDoclet Team
* All rights reserved.
*/
package org.xdoclet.plugin.hibernate.pojo;
import java.util.Map;
/**
* @hibernate.class
* @author Anatol Pomozov
*/
public class CompositeMapKeyMapping {
/**
* @hibernate.map
* @hibernate.composite-map-key
class="org.xdoclet.plugin.hibernate.pojo.CompositeMapKeyMapping$CompositeMapKey"
* @hibernate.element column="attributeValue" type="serializable"
not-null="true"
*/
private Map theMap;
public class CompositeMapKey {
/**
* @hibernate.key-property
*/
private Long keySN;
/**
* @hibernate.key-property
*/
private Long keyField;
/**
* @hibernate.key-many-to-one
*/
private Simple simple;
}
public class Simple {
}
}
Index: CompositeMapping.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/CompositeMapping.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CompositeMapping.java 13 May 2005 07:50:46 -0000 1.1
--- CompositeMapping.java 16 May 2005 17:56:45 -0000 1.2
***************
*** 22,26 ****
*/
private List emailAddresses;
-
/**
* @hibernate.list
--- 22,25 ----
***************
*** 30,38 ****
*/
private List permissions;
-
/**
* @hibernate.id generator-class="native"
*/
private Long userName;
/**
* @hibernate.map
--- 29,37 ----
*/
private List permissions;
/**
* @hibernate.id generator-class="native"
*/
private Long userName;
+
/**
* @hibernate.map
***************
*** 58,62 ****
*/
private Date parent;
-
/**
* @hibernate.property column="permissionType"
--- 57,60 ----
--- NEW FILE: CompositeMapKeyMapping.hbm.xml ---
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="org.xdoclet.plugin.hibernate.pojo.CompositeMapKeyMapping">
<map name="theMap">
<key/>
<composite-map-key
class="org.xdoclet.plugin.hibernate.pojo.CompositeMapKeyMapping$CompositeMapKey">
<key-property access="field" name="keySN"/>
<key-property access="field" name="keyField"/>
<key-many-to-one name="simple"/>
</composite-map-key>
<element column="attributeValue" type="serializable"
not-null="true"/>
</map>
</class>
</hibernate-mapping>
Index: Simple.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/Simple.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** Simple.java 13 May 2005 07:50:46 -0000 1.17
--- Simple.java 16 May 2005 17:56:45 -0000 1.18
***************
*** 20,24 ****
private Object _fullBlown;
private String _name;
-
/**
* property defined on field level
--- 20,23 ----
Index: ComponentMapping.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/ComponentMapping.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ComponentMapping.java 13 May 2005 07:50:46 -0000 1.8
--- ComponentMapping.java 16 May 2005 17:56:45 -0000 1.9
***************
*** 16,25 ****
*/
AnotherClass classComponent;
-
/**
* @hibernate.component
*/
Simple field;
-
/**
* @hibernate.id generator-class="native"
--- 16,23 ----
***************
*** 55,59 ****
*/
ComponentMapping xyz;
-
/**
* @hibernate.property column="col"
--- 53,56 ----
Index: SetMapping.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/SetMapping.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** SetMapping.java 13 May 2005 07:50:46 -0000 1.11
--- SetMapping.java 16 May 2005 17:56:45 -0000 1.12
***************
*** 15,19 ****
public class SetMapping {
private Set _set;
-
/**
* test one-to-many set using multiple key-column
--- 15,18 ----
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits