postgresql - How to do ORM using reverse engineering in Hibernate in Intellij IDEA? -
i have 100 tables , of them have average 40-50 fields. table have 5-6 fields, can make it's object relational mapping db.
but have many numbers of tables fields possible create orm using reverse engineering in intellij idea ?
if yes how ?
i have done mapping simple :
@entity @sequencegenerator(name = "sequence", sequencename = "pat_id_seq") @table(name = "pat") public class patron extends baseentity { @column(name = "p_id") private string pid; @column(name = "user_password") private string userpassword; }
i using postgresql db provider.
so on fast ?
help..
open persistence tool window, click generate persistence mapping.
view > tool windows > persistence
Comments
Post a Comment