@Entity
@Table(name = "course_document", schema = "skriptum")
public class CourseDocument extends GenericModel {
....
@SequenceGenerator(
name="course_document_PKGen",
sequenceName= "course_document_id_seq", // <-- thats the name of the
sequence of the table
schema = "skriptum",
allocationSize = 1 // set this to higher values only if you're
planing on inserting a huge amount of values at once.. else you'll
have big holes in your PK generation.
)
@GeneratedValue(generator = "course_document_PKGen", strategy =
GenerationType.SEQUENCE)
@Id
@Column(name = "id")
public long id;
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.
>
--
Dominik Dorn
http://dominikdorn.com
http://twitter.com/domdorn
Skripten, Mitschriften, Lernunterlagen, etc. findest Du auf
http://www.studyguru.eu !