Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How properly handle this find method with inheritance?  RSS feed

 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a ProductBean which is the super class of BookBean, ClothesBean and I want to create a find method like:

Since each bean is going to have its own table, what's the best way to do this? Is this even possible with CMP find methods?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!