Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22969/src/net/sourceforge/bprocessor/model
Modified Files:
Material.java
Log Message:
Materials can now be saved and loaded, and there is a "global" monitoring of all materials.
Index: Material.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Material.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Material.java 13 Jan 2006 10:25:02 -0000 1.7
--- Material.java 15 May 2006 09:20:46 -0000 1.8
***************
*** 9,12 ****
--- 9,17 ----
/**
* The Material of a Surface
+ * * @hibernate.class
+ * table="MATERIAL"
+ * lazy="false"
+ * @hibernate.cache
+ * usage="read-write"
*/
public class Material {
***************
*** 18,21 ****
--- 23,29 ----
private float[] color;
+ /** The id */
+ private Long id;
+
/**
* Default Constructor for Material
***************
*** 35,38 ****
--- 43,66 ----
/**
+ * Get the id
+ * @return The id
+ * @hibernate.id
+ * column="EDGE_ID"
+ * generator-class="increment"
+ */
+ public Long getId() {
+ return id;
+ }
+
+ /**
+ * Set the id
+ * @param id The id
+ */
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+
+ /**
* Get the name
* @return The name
|