annotations - How to auto increment a non primary id column using Hibernate? -


i have kept auto increment primary key, using auto increment option in table. , stated using hibernate.

but want auto increment column not primary key column using hibernate annotation. please help. in advance.

use following annotation on specific field

@generatedtype

private int non_primary_field


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -