jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra" <tobias.bocane...@day.com>
Subject Re: Restore throws a ConstraintViolationException
Date Tue, 27 Mar 2007 12:33:21 GMT
yes, there is:

        // adjust mixins
        QName[] mixinNames = freeze.getFrozenMixinTypes();
        setMixinTypesProperty(new HashSet(Arrays.asList(mixinNames)));

regards, toby

On 3/27/07, HarveyWaters <harvey.waters@googlemail.com> wrote:
>
> I can see in the restoreFrozen state function of NodeImpl that any properties
> that are not in the node being restored are removed. There doesn't however
> appear to be anything to remove mixinTypes that are no longer in the
> restored node. Consequently a constraint violation is thrown for any mixin
> types within mandatory properties. Is this right or am I missing something ?
> --
> View this message in context: http://www.nabble.com/Restore-throws-a-ConstraintViolationException-tf3472710.html#a9691232
> Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.
>
>


-- 
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Mime
View raw message