From: Roland Haeder <roland@mxchange.org>
Date: Sat, 10 Oct 2015 20:39:44 +0000 (+0200)
Subject: needed to add generation type IDENTITY
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ce70917df04165525fe298b5f47a8864b32eed7;p=jcountry-core.git

needed to add generation type IDENTITY
---

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<Country> {
 	 * Id number
 	 */
 	@Id
-	@GeneratedValue
+	@GeneratedValue(strategy = GenerationType.IDENTITY)
 	@Column (name = "country_id", length = 20, nullable = false, updatable = false)
 	private Long countryId;