Best Practices

Whenever possible, you should use container-managed persistence as rather than bean-managed persistence. A CMP entity bean is portable and easier to develop.

Use input parameters to write general EJB QL queries. For example, the query SELECT OBJECT(o) FROM Order AS o WHERE o.status = ?1 is preferable to the query SELECT OBJECT(o) FROM Order AS o WHERE o.status = 'SUBMITTED'.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.206.69