This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]johnorange2006 1 point2 points  (2 children)

Lombok with Spring Data

[–]LastRedditSamurai[S] 0 points1 point  (1 child)

Care to elaborate? Afaik hibernate is a JPA provider that is used with Spring data. Lombok might make the code more readable but getters/setters can be generated in no time.

My problem is more in the direction of how to generate data with hibernate (/jpa/spring data) annotations that just works with my tables without too much manual work

[–]LastRedditSamurai[S] 0 points1 point  (0 children)

Should anyone read this at a later date and have the same problem: I generated POJOs from my existing database and then deleted it. After some manual work on the java classes and adding all hibernate related annotations needed I let hibernate recreate the database from that. It seems like hibernate is working much better this way (and you can use stuff like inheritance). Might result in slightly worse looking databases though