Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JPA and Entities without setter methods

843830Jul 27 2007 — edited Aug 1 2007
Hello,

maybe a stupid question: I have an entity without a setter methods in order to make it immutable after creation. I�ve written all JPA annotations on method level - here on the getter method. I�ve got the error msg that the setter is required. It is possible to annotate fields without the setter method?

Thx,

Thilko
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2007
Added on Jul 27 2007
2 comments
2,448 views