Guest User

Untitled

a guest
Jan 19th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. //Pierwsza tabelka tworzy się bez zająknięcia.
  2.  
  3. @Entity(name = "account")
  4. public class User {
  5.     @Id
  6.     @GeneratedValue(strategy = GenerationType.AUTO)
  7.     private Long id;
  8.  
  9.     @Basic
  10.     private String firstName;
  11.  
  12. //Druga encja
  13.  
  14. @Entity(name = "product")
  15. public class Product {
  16.  
  17.     @Id
  18.     @GeneratedValue(strategy = GenerationType.AUTO)
  19.     private String productId;
  20.     @Basic
  21.     private String name;
  22.  
  23. //Błąd:
  24. com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'test_schema.product' doesn't exist
Advertisement
Add Comment
Please, Sign In to add comment