adspace


How to make an immutable class in hibernate?

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


Please Help Members By Posting Answers For Below Questions

What is latest hibernate version?

493