Complete code for the CustomerBeanCMP class

(note: it’s not annotated, because that’s YOUR job in the Sharpen exercise on the next page)

image with no caption
image with no caption

Entity bean instance lifecycle

image with no caption
image with no caption

It looks bad only when you see the whole thing at once. Relax...by the end of this chapter, assuming ...

Get Head First EJB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.