]> git.mxchange.org Git - jcountry-core.git/commitdiff
needed to add generation type IDENTITY
authorRoland Haeder <roland@mxchange.org>
Sat, 10 Oct 2015 20:39:44 +0000 (22:39 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 10 Oct 2015 20:39:44 +0000 (22:39 +0200)
src/org/mxchange/jcountry/data/CountryData.java

index 5f4d0fa718203b496d78bda4181a512cd161de56..fcdfb80e2e14bea92e385e2f5e554ab177a438c5 100644 (file)
@@ -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;