diff options
Diffstat (limited to 'Master/Reference Architectures and Patterns/EJB 3.0 Code/Micah Examples/src/examples/entity/joined/Coupe.java')
| -rw-r--r-- | Master/Reference Architectures and Patterns/EJB 3.0 Code/Micah Examples/src/examples/entity/joined/Coupe.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/Reference Architectures and Patterns/EJB 3.0 Code/Micah Examples/src/examples/entity/joined/Coupe.java b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Micah Examples/src/examples/entity/joined/Coupe.java new file mode 100644 index 0000000..59df47b --- /dev/null +++ b/Master/Reference Architectures and Patterns/EJB 3.0 Code/Micah Examples/src/examples/entity/joined/Coupe.java @@ -0,0 +1,25 @@ +package examples.entity.joined;
+
+import java.io.Serializable;
+
+import javax.persistence.Entity;
+
+@Entity(name="CoupeJoined")
+public class Coupe extends Car implements Serializable {
+ public enum BoringFactor {BORING,BORINGER,BORINGEST};
+
+ private BoringFactor boringFactor;
+
+ public Coupe() {
+ super();
+ numPassengers = 5;
+ }
+
+ public BoringFactor getBoringFactor() {
+ return boringFactor;
+ }
+
+ public void setBoringFactor(BoringFactor boringFactor) {
+ this.boringFactor = boringFactor;
+ }
+}
|
