How to set the column order of a composite primary key using JPA/Hibernate

后端 未结 2 998
面向向阳花
面向向阳花 2021-01-19 02:45

I\'m having trouble with the ordering of the columns in my composite primary key. I have a table that contains the following:

@Embeddable
public class Messa         


        
2条回答
  •  生来不讨喜
    2021-01-19 03:24

    I really don't think there is a way to do this. All I can do is suggest you use the SQL create statement you have (change it to have the correct order) and run it manually in production.

    In tests let Hibernate do its thing.

提交回复
热议问题