| 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: 8876
|
|
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
|
|
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: 8876
|
|
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.
|
 |
 |
|
|
subject: will CMP 2.0 supports multiple table joins?
|
|
|