Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need some clarifiation in declaring more than one annotated class in bean xml file  RSS feed

Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I suppose I have declared 5 bean in my xml file of Hibernate and I have annotaed
5 class in one bean
4 class in one bean
3 class in one bean
2 class in one bean

suppose this is my bean

and in my second bean class I have declare something like this

will there any perfomance or memory difference between these two declartions or both are fine irrespective of nuber of annotated class

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!