Hi Christian, Your assumptions are correct. The data module is normally the right place to store lists of things that can be edited, but are not directly web content. Magnolia does really not use JCR "Links" (References). It is more normal to use "weak links", which amount to storing the UUID of the referenced node in a string property. Using real links in JCR can be problematic.
Note that while you cannot implement referential integrity in JCR directly for a graph-like structure, you can certainly model it for a tree-like structure by simply using containment (ie each editor node contains the edited books as its sub-nodes). What I am wondering more though is why make the move to JCR at all? If you have an existing web-app, with existing screens and a working database, why not integrate this into magnolia directly, rather than rewriting it to use JCR? Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Christian Sprecher (via Magnolia Forums) Gesendet: Dienstag, 15. Jänner 2013 17:10 An: Magnolia User List Betreff: [magnolia-user] Migration of a RDBMS based Application Hi all I am currently pondering the migration of an existing java app to Magnolia. Everything is defined in a pretty tight DB schema, which is accessed by hibernate ORM (*shiver*). I am willing to relax the schema (e.g. allow arbitrary attributes) which would perfectly fit into the JCR world. The hierarchical nature of JCR would be an asset for some modelling stuff. What I am sceptical about is to loose some referential integrity constraints, e.g. the relation between an book and the editor (in our domain model). My knowledge is that Magnolia doesn't use any referential integrity constraints (i.e. JCR node references), but instead uuids or paths. So my questions are * is the assumption correct that Magnolia never uses node references? * would the data module be the right place to define the domain model? * does anyone have some experience to share regarding the migration path RDBMS -> JCR? Thx for some feedback -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=45bf35a1-7363-4f5a-be99-0f44631811a4 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
