Seetharaman Venkatasamy wrote:
mahajan amit wrote:
Is this static variable thread safe?
No, it is not thread safe. you can see this behavior to write one java program
1.start two thread on single object
2. declare one static int in that object
3. and loop like below in your run()
you need proper synchronization for above code.
<edit>William beaten me ;)</edit>
Paul Sturrock wrote:Hibernate works from a static model, it is not designed to handle dynamic classes (in its released and supported versions anyway). 3.3 has added some support for dynamic models but (as the documentation states) this is experimantal and can change at any time.
Is this the feature you were looking for?