GeneratedValue « Map « JPA Q&A





1. How to override GeneratedValue in orm.xml    stackoverflow.com

I have an entity using IDENTITY as generation type.

@Entity
public class SomeEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    ...

2. ManyToMany with intermediate entity and GeneratedValue    forum.hibernate.org

Newbie Joined: Fri Aug 22, 2008 6:12 am Posts: 13 Hallo. I have a problem with my ManyToMany mapping with an intermediate entity. My classes look like these: Code: @Entity public class Inventory { private Long id; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "INVENTORY_ID") ...

3. Persistence of Map not working with GeneratedValue for key?    forum.hibernate.org

I have two classes, each containing a Map, which I want to persist. One like this works: Code: @Entity(name = "foo") public class Foo implements Serializable { @Id @Column(name = "id") private String id; @CollectionOfElements(fetch=FetchType.EAGER) @JoinTable( name = "foo_map", joinColumns = ...