Private members in the model

I work with a game.

I defined a private member in my model, hoping that the JPA would not try to handle this.

For some reason, I get this error:

JPA error occurred (EntityManagerFactory cannot be built): Could not determine type for: java.util.Map, at table: User, for columns: [org.hibernate.mapping.Column (myPrivateMember)]

How can I declare such private members without deducting a JPA?

+4
source share
1 answer

Use the @Transient annotation. This suggests that the element is not sustainable.

+7
source

Source: https://habr.com/ru/post/1368957/


All Articles