This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes simple BMP entity implementation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "simple BMP entity implementation?" Watch "simple BMP entity implementation?" New topic

simple BMP entity implementation?

�yvind Valland

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?
Lasse Koskela

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

Joined: Sep 27, 2003
Posts: 16
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.
I agree. Here's the link:
subject: simple BMP entity implementation?