Currently the database is using the schema exactly as it was generated by Spring JPA. However this is far from optimal, as some unnecessary columns are being created and all entries are eagerly fetched. @MapKey and fetch = FetchType.LAZY should be used more often. Furthermore columns should be joined where possible and columns should receive more speaking names.
Currently the database is using the schema exactly as it was generated by Spring JPA. However this is far from optimal, as some unnecessary columns are being created and all entries are eagerly fetched.
@MapKey
andfetch = FetchType.LAZY
should be used more often. Furthermore columns should be joined where possible and columns should receive more speaking names.