From: Hirzel P. <ph...@us...> - 2008-05-18 13:07:48
|
Update of /cvsroot/tcotool/TCO-Tool/src/org/tcotool/model In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv11579/src/org/tcotool/model Modified Files: TcoObject.java Log Message: Schema: #baseDate removed Index: TcoObject.java =================================================================== RCS file: /cvsroot/tcotool/TCO-Tool/src/org/tcotool/model/TcoObject.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TcoObject.java 13 Jun 2007 20:15:54 -0000 1.3 --- TcoObject.java 18 May 2008 13:07:53 -0000 1.4 *************** *** 1,5 **** package org.tcotool.model; - import ch.softenvironment.jomm.descriptor.DbDateFieldDescriptor; import ch.softenvironment.jomm.descriptor.DbDescriptor; import ch.softenvironment.jomm.descriptor.DbMultiplicityRange; --- 1,19 ---- package org.tcotool.model; + /* + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ import ch.softenvironment.jomm.descriptor.DbDescriptor; import ch.softenvironment.jomm.descriptor.DbMultiplicityRange; *************** *** 8,13 **** import ch.softenvironment.jomm.mvc.model.DbEntityBean; /** ! * [implements ModelElement] ! * @author generated by the umleditor */ public abstract class TcoObject extends DbEntityBean { --- 22,27 ---- import ch.softenvironment.jomm.mvc.model.DbEntityBean; /** ! * Generic TCO-object. ! * @author Peter Hirzel <i>soft</i>Environment */ public abstract class TcoObject extends DbEntityBean { *************** *** 15,19 **** private String fieldDocumentation; private java.lang.Double fieldMultitude; // NOT NULL - private java.util.Date fieldBaseDate; private java.util.List fieldClientId=new java.util.ArrayList(); private java.util.List fieldSupplierId=new java.util.ArrayList(); --- 29,32 ---- *************** *** 25,32 **** public static DbDescriptor createDescriptor() { DbDescriptor descriptor = new DbDescriptor(TcoObject.class); ! descriptor.add("name","name",new DbTextFieldDescriptor(250),new DbMultiplicityRange(1,1)); ! descriptor.add("documentation","documentation",new DbTextFieldDescriptor(1024),new DbMultiplicityRange(0,1)); ! descriptor.add("multitude","multitude",new DbNumericFieldDescriptor(java.lang.Double.class,0.0,9999999.0,2),new DbMultiplicityRange(1,1)); ! descriptor.add("baseDate","baseDate",new DbDateFieldDescriptor(DbDateFieldDescriptor.DATE),new DbMultiplicityRange(0,1)); descriptor.addAssociationAttributed(DbDescriptor.AGGREGATION, "clientId", new DbMultiplicityRange(0,DbMultiplicityRange.UNBOUND), new DbMultiplicityRange(0,DbMultiplicityRange.UNBOUND), Dependency.class, "supplierId"); descriptor.addAssociationAttributed(DbDescriptor.ASSOCIATION, "supplierId", new DbMultiplicityRange(0,DbMultiplicityRange.UNBOUND), new DbMultiplicityRange(0,DbMultiplicityRange.UNBOUND), Dependency.class, "clientId"); --- 38,44 ---- public static DbDescriptor createDescriptor() { DbDescriptor descriptor = new DbDescriptor(TcoObject.class); ! descriptor.add("name", "name", new DbTextFieldDescriptor(250), new DbMultiplicityRange(1,1)); ! descriptor.add("documentation", "documentation", new DbTextFieldDescriptor(1024), new DbMultiplicityRange(0,1)); ! descriptor.add("multitude", "multitude", new DbNumericFieldDescriptor(java.lang.Double.class,0.0,9999999.0,2), new DbMultiplicityRange(1,1)); descriptor.addAssociationAttributed(DbDescriptor.AGGREGATION, "clientId", new DbMultiplicityRange(0,DbMultiplicityRange.UNBOUND), new DbMultiplicityRange(0,DbMultiplicityRange.UNBOUND), Dependency.class, "supplierId"); descriptor.addAssociationAttributed(DbDescriptor.ASSOCIATION, "supplierId", new DbMultiplicityRange(0,DbMultiplicityRange.UNBOUND), new DbMultiplicityRange(0,DbMultiplicityRange.UNBOUND), Dependency.class, "clientId"); *************** *** 34,41 **** return descriptor; } - public java.util.Date getBaseDate() { - refresh(false); // read lazy initialized objects - return fieldBaseDate; - } public java.util.List getClientId() { refresh(false); // read lazy initialized objects --- 46,49 ---- *************** *** 62,70 **** return fieldSupplierId; } - public void setBaseDate(java.util.Date baseDate){ - java.util.Date oldValue=fieldBaseDate; - fieldBaseDate=baseDate; - firePropertyChange("baseDate", oldValue, fieldBaseDate); - } public void setClientId(java.util.List client) { java.util.List oldValue=fieldClientId; --- 70,73 ---- |