1 25 package org.objectweb.easybeans.tests.common.ejbs.entity.geometricforms; 26 27 import javax.persistence.Entity; 28 import javax.persistence.EntityListeners; 29 import javax.persistence.TableGenerator; 30 31 import org.objectweb.easybeans.tests.common.listeners.FormsListener01; 32 import org.objectweb.easybeans.tests.common.listeners.FormsListener02; 33 34 40 @Entity 41 @EntityListeners({FormsListener01.class, FormsListener02.class }) 42 @TableGenerator(name = "ID_SEQ", allocationSize = 1) 43 public class Rectangle extends Form { 44 45 48 private float side1; 49 50 53 private float side2; 54 55 59 public float getSide1() { 60 return side1; 61 } 62 63 67 public void setSide1(final float side1) { 68 this.side1 = side1; 69 } 70 71 75 public float getSide2() { 76 return side2; 77 } 78 79 83 public void setSide2(final float side2) { 84 this.side2 = side2; 85 } 86 87 } 88 | Popular Tags |