How do I persist a Java property of type Object using Hibernate?
- by afielden
I have a Java class with a property like this
private Object myObj;
When I try to save the class using Hibernate annotations, I get the rather confusing error message "property mapping has wrong number of columns".
What is the correct approach to persisting a class containing a generic property such as this?