This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes will CMP 2.0 supports multiple table joins? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "will CMP 2.0 supports multiple table joins?" Watch "will CMP 2.0 supports multiple table joins?" New topic
Author

will CMP 2.0 supports multiple table joins?

giridhar voonna
Greenhorn

Joined: Sep 05, 2003
Posts: 8
Hi!
Please help me in the above clarification i have, i came to know that with CMP 2.0 we can map one CMP to multiple table joins and also using CMP sub classing we can make use of this code in bmp development, please let me know whats your feedback about this.
Regards
Giridhar
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Weblogic 7.0 CMP supports multiple tables.
For other servers You can map an entity to a view that joins multiple tables.
[ September 05, 2003: Message edited by: Pradeep Bhat ]

Groovy
giridhar voonna
Greenhorn

Joined: Sep 05, 2003
Posts: 8
i am working on websphere, please tell me CMP supports the same
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by Pradeep Bhat:
For other servers You can map an entity to a view that joins multiple tables.

Not all servers support mapping entity beans to view.
In general if you are mapping across multiple tables then Entity Beans are probably not the best choice. I would go with a more advanced O/R Mapper like Hibernate.
giridhar voonna
Greenhorn

Joined: Sep 05, 2003
Posts: 8
thanks for your reply, but hibernate can be integrated with websphere, is it free source or we need to buy?
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Hibernate is an extremely popular open source O/R Mapper. It is available under an LGPL license and is very feature complete. Take a look at Hibernate's Feature List.
giridhar voonna
Greenhorn

Joined: Sep 05, 2003
Posts: 8
Using CMP 2.0 sub classing we can make use of this sub classing code in bmp development to reduce coding in bmp, please let me know whats your feedback about this.
Regards
Giridhar
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by giridhar voonna:
Using CMP 2.0 sub classing we can make use of this sub classing code in bmp development to reduce coding in bmp, please let me know whats your feedback about this.
Regards
Giridhar

BMP is broken, it offers nothing. See these threads for more thoughts on BMP:
Best design practices
bmp v/s cmp
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Bringing life again into this thread...
Originally posted by Chris Mathews:
Not all servers support mapping entity beans to view.

Is this because the application server needs to be able to create the view as well as use it? Something else? From the "use" perspective, I can't think of a reason why views wouldn't be supported.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Is this because the application server needs to be able to create the view as well as use it?

This should not be a problem if we create the view manually.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: will CMP 2.0 supports multiple table joins?