1 25 package org.objectweb.easybeans.tests.common.ejbs.entity.entitytest01; 26 27 import javax.persistence.DiscriminatorColumn; 28 import javax.persistence.DiscriminatorType; 29 import javax.persistence.EmbeddedId; 30 import javax.persistence.Entity; 31 import javax.persistence.Inheritance; 32 import javax.persistence.InheritanceType; 33 34 39 @Entity 40 @Inheritance(strategy = InheritanceType.JOINED) 41 @DiscriminatorColumn(name = "roomDisc", discriminatorType = DiscriminatorType.STRING) 42 public class Room { 43 44 47 private RoomPK roomPk; 48 49 53 @EmbeddedId 54 public RoomPK getRoomPk() { 55 return roomPk; 56 } 57 58 62 public void setRoomPk(final RoomPK roomPk) { 63 this.roomPk = roomPk; 64 } 65 66 67 } 68 | Popular Tags |