A source code comply to an architectural model when it fully adheres to a set of architectural constraints. A constraint allows to deny references between classes by pattern.
You can for instance use this rule to :
**.web.** from **.dao.** classes
java.util.Vector, java.util.Hashtable and java.util.Enumeration from any classes
java.sql.** from **.ui.** and **.web.** classes