java - Long column size in JPA/Hibernate -


@id @generatedvalue(strategy = generationtype.identity) @basic(optional = false) @column(name = company_id , length = 10) private long id; 

enter image description here

in sql gets converted bigint(20),what if want int(11) or how give specific size long field??

you can use columndefinition inside @column()

 @column(columndefinition="bigint(20)") 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -