]> git.mxchange.org Git - jphone-core.git/commitdiff
needed to add generation type IDENTITY
authorRoland Haeder <roland@mxchange.org>
Sat, 10 Oct 2015 20:40:19 +0000 (22:40 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 10 Oct 2015 20:40:19 +0000 (22:40 +0200)
src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java

index c1d5bdd10f17d16c0d881b43d796a242f4cd6b66..7aecf88b47976e848166a66ae2fa8d01c0d8d2cd 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 FaxNumber implements DialableFaxNumber, Comparable<DialableFaxNumbe
         * Id number
         */
        @Id
-       @GeneratedValue
+       @GeneratedValue(strategy = GenerationType.IDENTITY)
        @Column (name = "fax_id", length = 20, nullable = false, updatable = false)
        private Long phoneId;