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

'hasOwnProperty' in javascript -

c# - Update a combobox from a presenter (MVP) -

android - Unable to generate FCM token from dynamically instantiated Firebase -