Hi Andrus I had to chew on item 4 a bit, i.e. the idea of collapsing Db vs Obj into a single Entity / Attribute / Relationship layer does make a lot of sense on paper and I can appreciate the appeal of cutting the mapping roughly in half. That said, coming from years of working only with Cayenne’s current dual-layer approach, a few practical concerns keep coming up for me. I’d be interested in your thoughts on how these would be handled: Multiple “views” over the same table Today it’s straightforward to have several ObjEntities that map different subsets of the same DbEntity. In a single-layer world, would we still be able to have lightweight projections / secondary mappings without repeating the column definitions? And if a column’s, name, type, or nullability changes, would that still be a single point of update?
Multi-table entities and flattened attributes/relationships These are genuinely useful. I’m assuming the plan is to keep the capability (an Entity can still pull attributes across relationship paths), just without the separate DbRelationship bookkeeping. Is that the direction? Seeing the full table structure One thing I find useful sometimes is being able to look at a DbEntity and immediately see every column, the PK strategy, etc. In a unified model, would there still be a clear “this is the complete physical table” view, or would that information only be visible if some Entity happens to map all the columns? Can you please clarify how these things would be expressed in the new design. Thanks for all the ongoing work on Cayenne. Kind regards, Jurgen
