0

I am using Spring JPA. There is a class for JPA enitity

@Entity
@Table(name = SchemaConstant.MENU_TABLE)
public class Menu extends BaseEntity {

  @NotNull private String title;

  private String path;

  private UUID parentId;

  private boolean hasSub;

  private String iconName;
}

And the snapshot of the database table columns are shown below

enter image description here

If you see the table columns order is not the same as the class order. Now I want to reorder this table's columns.

Like column 1 -> id, column 2 -> title, column 3 -> icon_name as requires  

Is there any way of customizing the order of the table columns?

0 Answers0