struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Viet <vi...@activia.net>
Subject DAO or ... ?
Date Mon, 14 Oct 2002 14:44:55 GMT
My question is a web app design question. 
What pattern you guys follow when you want to save a domain object in
the database ?: 

- use the DAO pattern of java blueprint  (persistence layer is called
into classes)
- call to persistence statements into action code :
	
	// store example
	try {
		PeristenceLayer pl = getPerstitenceLayer();
		pl.save(domainObject);
	}
	catch (Exception


-- 
Kevin Viet <vietk@activia.net>
ActiVia Networks




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message