Skip to content

Instantly share code, notes, and snippets.

View LebedevVA2018's full-sized avatar

LebedevVA2018

View GitHub Profile
package orderDAO.models;
import orderDAO.util.Id;
import javax.persistence.*;
public class Client {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
package orderHibernate.model;
import javax.persistence.*;
@Entity
@Table(name = "Clients")
public class Client {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
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 |