adspace
Answer Posted / Krishna Kumar
In Hibernate, you can make a class immutable by not providing any setter methods for the instance variables. Alternatively, you can use the JPA @Immutable annotation if your application is using JPA instead of Hibernate.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers