This content has been marked as final.
Show 2 replies
-
1. Re: EmbeddedId and GeneratedValue
jc7442 Jun 7, 2006 10:11 AM (in response to jc7442)Ive try the same kinds of think with IdClass:
@Entity @Table(name = "WAREHOUSE") @IdClass(WarehousePK.class) public class Warehouse { long name; String city; @Id @GeneratedValue(strategy = GenerationType.TABLE) @Column(name = "W_NAME") public long getName() { return name; } ... }
GeneratedValue annotation is ignored.
Any idea on how to have a typed PK with a generated value ? -
2. Re: EmbeddedId and GeneratedValue
memema Jan 7, 2008 10:11 AM (in response to jc7442)I have the same question? Some idea? Thanks