On Wed, Jan 28, 2009 at 10:58 AM, Alessandro Cosenza <[email protected]> wrote: > thanks stefan. > but now > i have > [dms:document] > mix:accessControl > + dms:content (dms:resource) > > ... > > [dms:resource] > mix:versionable > > > when i create a node with dms:document type, > i have to initialize the mandatory properties inherited from > mix:accessControl, otherwise it throws an exception. > i see that mix:versionable has also some mandatory > properties not autocreated > such as jcr:versionHistory and jcr:baseVersion, but when i > create the > dms:content child node i don't initialize them and it > doesnt't throw any exception! it's strange. > do you understand? please help me.
mix:versionable is kind of a "marker" type that is handled automatically by the repository, therefore you don't have to manually handle with jcr:versionHistory and co (Version and VersionHistory interfaces are built-in to the JCR API). mix:accessControl on the other hand is not automatically handled by the repository, so you have to add the properties / child nodes for it manually. Regards, Alex -- Alexander Klimetschek [email protected]
