Skip to content

jbloemendal/jcr-simple-ocm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JCR Simple OCM

Annotate your beans to load and persist from / to JCR.

Example

@JcrNodeType(value = "jcrmockup:user")
public class User implements Serializable {

    private static final long serialVersionUID = -3487145516242048487L;

    @JcrPath(value = "jcrmockup:username")
    private String userName;

    @JcrPath(value = "jcrmockup:fullname")
    private String fullName;

    @JcrPath(value = "*")
    private Map<String, Attribute> attributes;

    @JcrPath(value = "*")
    private Map<String, Preference> preferences;
}

Supports

  • Inheritance
  • Aggregation
  • Collections (List, Map, Set)
  • Converters, intersecting read / write

For details and examples look at the tests src/main/java/org/onehippo/simpleocm/.

About

Simple JCR Object Relation Mapper

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages