Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Pierwsza tabelka tworzy się bez zająknięcia.
- @Entity(name = "account")
- public class User {
- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
- private Long id;
- @Basic
- private String firstName;
- //Druga encja
- @Entity(name = "product")
- public class Product {
- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
- private String productId;
- @Basic
- private String name;
- //Błąd:
- com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'test_schema.product' doesn't exist
Advertisement
Add Comment
Please, Sign In to add comment