I\'ve got some problem with hibernate @OneToMany mapping. It goes like here
@OneToMany
@Entity @Table(name = \"albums\") @SequenceGenerator(name = \"ALBUMS
First - it can't generate them because you didn't tell it how to do it. Use @GeneratedValue and choose the strategy you want.
@GeneratedValue
Then - you can't have two @Id fields. If you want a composite id use @EmbeddedId or @IdClass
@Id
@EmbeddedId
@IdClass