Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- @SequenceGenerator(name="[notification.id_seq]_generator", sequenceName="[notification.id_seq]", allocationSize=1)
- public class Notification {
- ...
- @Id
- @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="[notification.id_seq]_generator")
- @Column(name="id")
- public Long getId () {
- return _id;
- }
- ..
- }
- Hibernate:
- select
- next value for `notification.id_seq`
- Hibernate:
- select
- next value for [notification.id_seq]
Add Comment
Please, Sign In to add comment