![](https://secure.gravatar.com/avatar/f6a35c85d26694e26bb92ea4d4262c77.jpg?s=120&d=mm&r=g)
14 Oct
2008
14 Oct
'08
8:32 p.m.
however, it seems to me that constraints belong to DAO classes in the same way column types do.
The way I see it, DAO classes are purely access object declarations. The column types are already borderline irrelevant, but since it's often extremely convenient to only have to list your columns once, I include them there. Constraints can easily be specified outside of CREATE TABLE statements, so there's no pressing reason to include them in DAO definitions. Best, Marijn