From 9ce70917df04165525fe298b5f47a8864b32eed7 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 10 Oct 2015 22:39:44 +0200 Subject: [PATCH] needed to add generation type IDENTITY --- src/org/mxchange/jcountry/data/CountryData.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/mxchange/jcountry/data/CountryData.java b/src/org/mxchange/jcountry/data/CountryData.java index 5f4d0fa..fcdfb80 100644 --- a/src/org/mxchange/jcountry/data/CountryData.java +++ b/src/org/mxchange/jcountry/data/CountryData.java @@ -20,6 +20,7 @@ import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @@ -41,7 +42,7 @@ public class CountryData implements Country, Comparable { * Id number */ @Id - @GeneratedValue + @GeneratedValue(strategy = GenerationType.IDENTITY) @Column (name = "country_id", length = 20, nullable = false, updatable = false) private Long countryId; -- 2.39.5