jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Short <...@benshort.co.uk>
Subject OCM
Date Fri, 23 Oct 2009 08:04:00 GMT
Hi,

Given the simple code that follows is it possible to tell the
ObjectContentManager via the annotations to create any parent nodes in
the path automatically?

@Node
public class Person {

	@Field(path=true)
	private String path;

        // setters and getters omitted for brevity

}

Person p = new Person();

p.setPath("/contacts/work/person1");

ocm.insert(p);

ocm.save();

Regards

Ben Short

Mime
View raw message