From: <one...@us...> - 2003-02-09 06:36:08
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test In directory sc8-pr-cvs1:/tmp/cvs-serv6948/hibernate/test Added Files: CompositeElement.java Log Message: standardised on dom4j fixed bugs in collection caching (sometimes an exception occurred) allowed null discriminators set autocommit to true in SchemaUpdate collections now deserialize correctly --- NEW FILE: CompositeElement.java --- package net.sf.hibernate.test; import java.io.Serializable; /** * @author Administrator * * To change this generated comment edit the template variable "typecomment": * Window>Preferences>Java>Templates. * To enable and disable the creation of type comments go to * Window>Preferences>Java>Code Generation. */ public class CompositeElement implements Comparable, Serializable { private String foo; private String bar; /** * Returns the bar. * @return String */ public String getBar() { return bar; } /** * Returns the foo. * @return String */ public String getFoo() { return foo; } /** * Sets the bar. * @param bar The bar to set */ public void setBar(String bar) { this.bar = bar; } /** * Sets the foo. * @param foo The foo to set */ public void setFoo(String foo) { this.foo = foo; } /** * @see java.lang.Comparable#compareTo(java.lang.Object) */ public int compareTo(Object o) { return ( (CompositeElement) o ).foo.compareTo(foo); } } |