Long型id数据对应MySQL数据库中 bigint 数据类型;
System.out.println(1==1L); //ture
System.out.println(1L); //1
System.out.println(1L+"2"); //12
java类
mysql数据库
java.lang.Byte
byte
java.lang.Short
short
java.lang.Integer
integer
INGEGER
java.lang.Long
long
BIGINT
java.lang.Float
float
FLOAT
java.lang.Double
double
DOUBLE
java.lang.BigDecimal
big_decimal
NUMERIC
java.lang.Boolean
boolean
BIT
java.lang.String
string
VARCHAR
java.lang.Boolean
yes_no
CHAR(1)(‘Y’或’N’)
java.lang.Boolean
true_false
CHAR(1)(‘Y’或’N’)
java.uitl.Date / java.sql.Date
date
DATE
java.sql.Time
time
TIME
java.sql.Timestamp
timestamp
TIMESTAMP
java.uitl.Calendar
celendar
TIMESTAMP
java.uitl.Calendar
calendar
TIMESTAMP
java.io.Serializable
serializable
VARBINARY/BLOB
java.sql.Clob
clob
CLOB
java.sql.Blob
blob
BLOB
java.lang.Class
class
VARCHAR
java.uitl.Locale
locale
VARCHAR
java.uitl.TimeZone
timezone
VARCHAR
java.uitl.Currency
currency
VARCHAR