This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package orderDAO.models; | |
import orderDAO.util.Id; | |
import javax.persistence.*; | |
public class Client { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package orderHibernate.model; | |
import javax.persistence.*; | |
@Entity | |
@Table(name = "Clients") | |
public class Client { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create database blog; | |
use blog; | |
create table role ( | |
-> role_id int unsigned auto_increment primary key, | |
-> role varchar(10)); | |
describe role; | |
+---------+------------------+------+-----+---------+----------------+ | |
| Field | Type | Null | Key | Default | Extra | |