Update of /cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19940/samples/src/java/test/hibernate
Modified Files: CompositeId.java CompositeIdEntity.java Added Files: ICompositeId.java Log Message: test with composite ID referenced through interface --- NEW FILE: ICompositeId.java --- /* * Copyright (c) 2001, 2005 The XDoclet team * All rights reserved. */ package test.hibernate; public interface ICompositeId { public Integer getFoo(); public long getBar(); public String getBaz(); public Order getOrder(); public void setFoo(Integer foo); public void setBar(long bar); public void setBaz(String baz); public void setOrder(Order order); } Index: CompositeId.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate/CompositeId.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** CompositeId.java 15 Mar 2003 06:00:43 -0000 1.3 --- CompositeId.java 22 Apr 2005 12:03:14 -0000 1.4 *************** *** 11,15 **** * @created January 6, 2003 */ ! public class CompositeId implements Serializable { --- 11,15 ---- * @created January 6, 2003 */ ! public class CompositeId implements Serializable, ICompositeId { Index: CompositeIdEntity.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate/CompositeIdEntity.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** CompositeIdEntity.java 5 Feb 2003 23:06:58 -0000 1.2 --- CompositeIdEntity.java 22 Apr 2005 12:03:14 -0000 1.3 *************** *** 2,6 **** /** ! * demonstrate composite ID * * @author ko5tik ( Konstantin Pribluda ) --- 2,6 ---- /** ! * demonstrate composite ID referenced by interface * * @author ko5tik ( Konstantin Pribluda ) *************** *** 10,23 **** { ! private CompositeId _id; private String _foo; /** ! * @hibernate.id generator-class="assigned" */ ! public CompositeId getId() { return _id; } ! public void setId(CompositeId id) { _id = id; } --- 10,23 ---- { ! private ICompositeId _id; private String _foo; /** ! * @hibernate.id generator-class="assigned" type="test.hibernate.CompositeId" */ ! public ICompositeId getId() { return _id; } ! public void setId(ICompositeId id) { _id = id; } ------------------------------------------------------- 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-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel