Tuesday, January 20, 2009

Simplify Java XML Parsing with Jakarta Digester

Spring Inversion of Control (IOC)

Simple steps for using Spring IOC

Click >> SpringIOC

Monday, January 19, 2009

Cascading

1) cascade="none", the default, tells Hibernate to ignore the association.
2) cascade="save-update" tells Hibernate to navigate the association when the
transaction is committed and when an object is passed to save() or
update() and save newly instantiated transient instances and persist changes to
detached instances.
3) cascade="delete" tells Hibernate to navigate the association and delete persistent
instances when an object is passed to delete().
4) cascade="all" means to cascade both save-update and delete, as well as
calls to evict and lock.
5) cascade="all-delete-orphan" means the same as cascade="all" but, in addition,
Hibernate deletes any persistent entity instance that has been removed
(dereferenced) from the association (for example, from a collection).
6) cascade="delete-orphan" Hibernate will delete any persistent entity
instance that has been removed (dereferenced) from the association (for
example, from a collection).

Monday, January 12, 2009

Container-Managed Transactions


Transaction Attribute
Client's Transaction
Business Method's Transaction
Required
None
T2
T1
T1
RequiresNew
None
T2
T1
T2
Mandatory
None
error
T1
T1
NotSupported
None
None
T1
None
Supports
None
None
T1
T1
Never
None
None
T1
Error

Transaction Timeouts and EJB3/JPA