Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8238037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:40:37+00:00 2026-06-07T19:40:37+00:00

my goal is to store information about projects within Jackrabbit. Each project can consist

  • 0

my goal is to store information about projects within Jackrabbit. Each project can consist out of several sub-projects with project related files/documents attached to them.

Consider the following structure:

-project 1
 -project 1.1
 -project 1.2
  -project 1.2.1
  -project 1.2.2
-project 2

I have a java class representing each project which looks like this:

public class Project {

  @Field
  private String name;

  @Collection
  private List<Project> subprojects;

  // more properties + getter/setter
}

My questions are:

  • Is there anything similar to lazy loading from ORM tools? For example: When I want to get the information about project 1 I don’t need all the information from subprojects. Whats the best way to achive this?
  • Whats the best way to attach binary data (files, documents, images) to a project when using OCM?

(Unfortunately the Jackrabbit OCM documentation is not really detailed)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:40:40+00:00Added an answer on June 7, 2026 at 7:40 pm

    For lazy loading, you can achieve this by specifying proxy=true in Bean or Collection annotation.

    Binary data can be represented as jcr:data property of nt:resource so the mapping looks something like this.

    @Node(jcrType = "nt:resource")
    public class ResourceModel extends MimeTypeModel {
    
        @Field(path = true)
        String path = null;
    
        @Field(jcrName = "jcr:data")
        java.io.InputStream jcr_data = null;
    }
    

    It is true the document of OCM is not updated, but you can find the useful information from /org/apache/jackrabbit/ocm/config/jackrabbit-ocm-1.5.dtd under src/main/resources in the source distribution.

    HTH,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My goal is store temporary files in the directory returned by Context#getCacheDir(). /data/data/my.app/cache/somedir/foo.json I
My goal is to store some html-formatted data in a variable, then echo it
My goal is to create an efficient structure to store the most relevant entries
Goal : I wants when I drag image it become fade so we can
Goal: Produce an Excel document with information from 3 associated models that is similar
Current we are using Oracle to store logging information. One of the column is
Goal: Display customized information based on end user's position. If you have 2 user:
I'm working on a goal completion application, where there can be Goals, Milestones, and
I have a set of Oracle tables that describe information about property owners. Owner
In my application, I have an @ApplicationScoped CDI bean to store some information from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.