@Entity
@SecondaryTable(name = "ExtendedLife")
public class Life implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "LIFE_ID")
public Integer id;
public int duration;
@Column(table = "ExtendedLife")
public String fullDescription;
@ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE})
@JoinColumn(name = "CAT_ID", table = "ExtendedLife")
public Cat owner;
}