Skip to content
Snippets Groups Projects
Commit 6a15693b authored by Goik Martin's avatar Goik Martin
Browse files

Identity Generation strategy

parent cbd1b0a7
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ package de.hdm_stuttgart.mi.sda1.hiberjpa.model; ...@@ -2,6 +2,7 @@ package de.hdm_stuttgart.mi.sda1.hiberjpa.model;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id; import javax.persistence.Id;
/** /**
...@@ -12,7 +13,7 @@ import javax.persistence.Id; ...@@ -12,7 +13,7 @@ import javax.persistence.Id;
public class Lecture { public class Lecture {
@Id @Id
@GeneratedValue @GeneratedValue (strategy=GenerationType.IDENTITY)
private Integer id; private Integer id;
String name; String name;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment