Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
I use field Updator to keep Class User's updator, Updator itself is of Class User:
Class User{
...
User updator;
}
This makes a recursive problem which may cost a lot memory(Do not know how hibernate solve such recursive prolbem).I tried a method, make a new class SimpleUser to be the updator which itself don't have a updator:
Class SimpleUser{
...
}
Class User extends SimpleUser{
...
SimpleUser updator;
}
But sometimes I got WrongClassException. How to solve such problem?