Hmm, I may be going blind but I don't see a Type-Defect (see attached screenshot).
No problem if it isn't possible. I had a look at the source and I thought it might be possible to do something like this:
protected String update( Node node, T entity, String childNodeFilter, int maxDepth, boolean newVersion ) {
try {
if ( isVersionable && newVersion) {
//node.checkout();
checkoutRecursively(node);
}
String name = jcrom.updateNode(node, entity, childNodeFilter, maxDepth);
getSession().save();
if ( isVersionable && newVersion) {
//node.checkin();
checkinRecursively(node);
}
return name;
} catch ( RepositoryException e ) {
throw new JcrMappingException("Could not update node", e);
}
}
I discovered that I don't actually need this feature yet anyway, as I can just update a node without updating it's children (i.e. dao.update(myEntity, "none", -1)), which is ok for now. I still think it might be something useful further down the track.
Again, thanks for the library, I've found it to be essential for working with JCR. :)
regards,
ben
--
Rodney Dangerfield - "When I was a kid my parents moved a lot, but I always found them."