| Author |
simple BMP entity implementation?
|
�yvind Valland
Greenhorn
Joined: Sep 27, 2003
Posts: 16
|
|
I am having a bit of trouble understanding BMP entity beans. For an assignment at university I have to re-write an MVC architecture application to an n-tier application using session beans and entity beans. I am making slow progress, but was sort of stopped dead by SAMS 'Teach yourself J2EE in 21 days' explanation of how to implement BMP entity beans. I am attempting to keep the front end of my application, because I rather like it. In order to keep it, though, I need to write (I think) a BMP that represents an 'order line' (one line on the order; order number, product number, product name, description etc etc etc). This data is found in two tables in my database, namely the orderline and product tables. My 'orderline' BMP should write some of the data it contains (order number, product number, line quantity, line total) to the orderline table when the create() method is called. However, when I wish to obtain orderline references by calling a findByOrderNo() method, the BMP must get data from the product table also. I just don't understand the J2EE book I have, at all. If someone has time to try and explain this in simple terms I'd be so very grateful. Alternatively, links to good articles are joyfully accepted. Why must it be so complex? Sincerely, Oyvind
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
Have you tried the J2EE Tutorial?
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
�yvind Valland
Greenhorn
Joined: Sep 27, 2003
Posts: 16
|
|
Actually, I found the J2EE tutorial right after I put my question on the board. I'm going to go through it and see if I can make it work. Thanks!
|
 |
 |
|
|
subject: simple BMP entity implementation?
|
|
|