You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by re...@apache.org on 2022/05/12 13:18:22 UTC
svn commit: r1900838 [23/50] - in /jackrabbit/site/live/jcr: ./ components/ css/ images/ js/ ocm/ status/
Modified: jackrabbit/site/live/jcr/ocm/basic-ocm-operations.html
URL: http://svn.apache.org/viewvc/jackrabbit/site/live/jcr/ocm/basic-ocm-operations.html?rev=1900838&r1=1900837&r2=1900838&view=diff
==============================================================================
--- jackrabbit/site/live/jcr/ocm/basic-ocm-operations.html (original)
+++ jackrabbit/site/live/jcr/ocm/basic-ocm-operations.html Thu May 12 13:18:21 2022
@@ -1,452 +1,176 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at 2020-07-08
- | Rendered using Apache Maven Fluido Skin 1.3.1
+ | Generated by Apache Maven Doxia Site Renderer 1.9.2 from src\site\markdown/ocm\basic-ocm-operations.md at 2022-05-12
+ | Rendered using Apache Maven Fluido Skin 1.9
-->
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20200708" />
- <meta http-equiv="Content-Language" content="en" />
- <title>Apache Jackrabbit - Basic OCM operations</title>
- <link rel="stylesheet" href="../css/apache-maven-fluido-1.3.1.min.css" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 1.9.2" />
+ <title>Apache Jackrabbit – Basic OCM operations</title>
+ <link rel="stylesheet" href="../css/apache-maven-fluido-1.9.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
-
-
- <script type="text/javascript" src="../js/apache-maven-fluido-1.3.1.min.js"></script>
-
-
- </head>
- <body class="topBarEnabled">
-
-
-
-
-
-
- <a href="http://github.com/apache/jackrabbit">
+ <script src="../js/apache-maven-fluido-1.9.min.js"></script>
+<!-- Matomo -->
+<script>
+ var _paq = window._paq = window._paq || [];
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+ /* We explicitly disable cookie tracking to avoid privacy issues */
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="https://matomo.privacy.apache.org/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '4']);
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+ g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
+ })();
+</script>
+<!-- End Matomo Code -->
+ </head>
+ <body class="topBarEnabled">
+ <a href="https://github.com/apache/jackrabbit">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"
alt="Fork me on GitHub">
</a>
-
-
-
-
-
- <div id="topbar" class="navbar navbar-fixed-top ">
+ <header id="topbar" class="navbar navbar-fixed-top ">
<div class="navbar-inner">
- <div class="container-fluid">
+ <div class="container-fluid">
<a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
-
- <a class="brand" href="../index.html" title="Apache Jackrabbit">
-
-
- <img src="../images/logos/jlogo.gif" alt="Apache Jackrabbit" />
-
- </a>
-
- <ul class="nav">
- <li class="dropdown">
+<a class="brand" href="../index.html" title="Apache Jackrabbit"><img src="../images/logos/jlogo.gif" alt="Apache Jackrabbit" />
+</a>
+ <ul class="nav">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Jackrabbit <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="../index.html" title="Welcome">Welcome</a>
-</li>
-
- <li> <a href="../downloads.html" title="Downloads">Downloads</a>
-</li>
-
- <li> <a href="../articles.html" title="Articles">Articles</a>
-</li>
-
- <li> <a href="../frequently-asked-questions.html" title="FAQ">FAQ</a>
-</li>
-
- <li> <a href="http://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" title="Archived Jackrabbit Wiki">Archived Jackrabbit Wiki</a>
-</li>
-
- <li> <a href="../jackrabbit-history.html" title="Jackrabbit History">Jackrabbit History</a>
-</li>
- </ul>
+ <li><a href="../index.html" title="Welcome">Welcome</a></li>
+ <li><a href="../downloads.html" title="Downloads">Downloads</a></li>
+ <li><a href="../articles.html" title="Articles">Articles</a></li>
+ <li><a href="../frequently-asked-questions.html" title="FAQ">FAQ</a></li>
+ <li><a href="https://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" title="Archived Jackrabbit Wiki">Archived Jackrabbit Wiki</a></li>
+ <li><a href="../jackrabbit-history.html" title="Jackrabbit History">Jackrabbit History</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentation <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="../getting-started-with-apache-jackrabbit.html" title="Getting Started">Getting Started</a>
-</li>
-
- <li> <a href="../standalone-server.html" title="Standalone Server">Standalone Server</a>
-</li>
-
- <li> <a href="../jackrabbit-components.html" title="Jackrabbit Components">Jackrabbit Components</a>
-</li>
-
- <li> <a href="../first-hops.html" title="First Hops">First Hops</a>
-</li>
-
- <li> <a href="../jcr-api.html" title="JCR & API">JCR & API</a>
-</li>
-
- <li> <a href="../jackrabbit-architecture.html" title="Jackrabbit Architecture">Jackrabbit Architecture</a>
-</li>
-
- <li> <a href="../deployment-models.html" title="Deployment Models">Deployment Models</a>
-</li>
-
- <li> <a href="../jackrabbit-configuration.html" title="Jackrabbit Configuration">Jackrabbit Configuration</a>
-</li>
-
- <li> <a href="../node-types.html" title="Node Types">Node Types</a>
-</li>
-
- <li> <a href="../object-content-mapping.html" title="Object Content Mapping">Object Content Mapping</a>
-</li>
- </ul>
+ <li><a href="../getting-started-with-apache-jackrabbit.html" title="Getting Started">Getting Started</a></li>
+ <li><a href="../standalone-server.html" title="Standalone Server">Standalone Server</a></li>
+ <li><a href="../jackrabbit-components.html" title="Jackrabbit Components">Jackrabbit Components</a></li>
+ <li><a href="../first-hops.html" title="First Hops">First Hops</a></li>
+ <li><a href="../jcr-api.html" title="JCR & API">JCR & API</a></li>
+ <li><a href="../jackrabbit-architecture.html" title="Jackrabbit Architecture">Jackrabbit Architecture</a></li>
+ <li><a href="../deployment-models.html" title="Deployment Models">Deployment Models</a></li>
+ <li><a href="../jackrabbit-configuration.html" title="Jackrabbit Configuration">Jackrabbit Configuration</a></li>
+ <li><a href="../node-types.html" title="Node Types">Node Types</a></li>
+ <li><a href="../object-content-mapping.html" title="Object Content Mapping">Object Content Mapping</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Development <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="../jackrabbit-team.html" title="Jackrabbit Team">Jackrabbit Team</a>
-</li>
-
- <li> <a href="../jackrabbit-roadmap.html" title="Jackrabbit Roadmap">Jackrabbit Roadmap</a>
-</li>
-
- <li> <a href="../building-jackrabbit.html" title="Building Jackrabbit">Building Jackrabbit</a>
-</li>
-
- <li> <a href="../mailing-lists.html" title="Mailing Lists">Mailing Lists</a>
-</li>
-
- <li> <a href="../issue-tracker.html" title="Issue Tracker">Issue Tracker</a>
-</li>
-
- <li> <a href="../source-repository.html" title="Source Repository">Source Repository</a>
-</li>
-
- <li> <a href="../continuous-integration.html" title="Continuous Integration">Continuous Integration</a>
-</li>
-
- <li> <a href="../website.html" title="Website">Website</a>
-</li>
-
- <li> <a href="../creating-releases.html" title="Creating Releases">Creating Releases</a>
-</li>
-
- <li> <a href="../supporting-software-attribution.html" title="Attribution">Attribution</a>
-</li>
-
- <li> <a href="../privacy-policy.html" title="Privacy">Privacy</a>
-</li>
- </ul>
+ <li><a href="../jackrabbit-team.html" title="Jackrabbit Team">Jackrabbit Team</a></li>
+ <li><a href="../jackrabbit-roadmap.html" title="Jackrabbit Roadmap">Jackrabbit Roadmap</a></li>
+ <li><a href="../building-jackrabbit.html" title="Building Jackrabbit">Building Jackrabbit</a></li>
+ <li><a href="../mailing-lists.html" title="Mailing Lists">Mailing Lists</a></li>
+ <li><a href="../issue-tracker.html" title="Issue Tracker">Issue Tracker</a></li>
+ <li><a href="../source-repository.html" title="Source Repository">Source Repository</a></li>
+ <li><a href="../continuous-integration.html" title="Continuous Integration">Continuous Integration</a></li>
+ <li><a href="../website.html" title="Website">Website</a></li>
+ <li><a href="../creating-releases.html" title="Creating Releases">Creating Releases</a></li>
+ <li><a href="../supporting-software-attribution.html" title="Attribution">Attribution</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Software Foundation <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="http://www.apache.org/foundation/how-it-works.html" title="Introduction">Introduction</a>
-</li>
-
- <li> <a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a>
-</li>
-
- <li> <a href="http://www.apache.org/foundation/thanks.html" title="Current Sponsors">Current Sponsors</a>
-</li>
- </ul>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" title="Introduction">Introduction</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" title="Current Sponsors">Current Sponsors</a></li>
+ <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" title="Privacy">Privacy</a></li>
+ </ul>
</li>
- </ul>
-
-
-
-
- </div>
-
+ </ul>
</div>
</div>
- </div>
-
- <div class="container-fluid">
- <div id="banner">
- <div class="pull-left">
- <div id="bannerLeft">
- <h2>Apache Jackrabbit Site</h2>
- </div>
- </div>
- <div class="pull-right"> </div>
- <div class="clear"><hr/></div>
- </div>
-
- <div id="breadcrumbs">
- <ul class="breadcrumb">
-
-
- <li id="publishDate">Last Published: 2020-07-08
- </li>
-
-
-
-
- </ul>
- </div>
+ </header>
+ <div class="container-fluid">
+ <header>
+ <div id="banner">
+ <div class="pull-left"><div id="bannerLeft"><h2>Apache Jackrabbit Site</h2>
+</div>
+</div>
+ <div class="pull-right"></div>
+ <div class="clear"><hr/></div>
+ </div>
-
+ <div id="breadcrumbs">
+ <ul class="breadcrumb">
+ <li id="publishDate">Last Published: 2022-05-12</li>
+ </ul>
+ </div>
+ </header>
<div class="row-fluid">
- <div id="leftColumn" class="span3">
+ <header id="leftColumn" class="span2">
+ <nav class="well sidebar-nav">
+ <ul class="nav nav-list">
+ <li class="nav-header">Apache Jackrabbit</li>
+ <li><a href="../index.html" title="Welcome"><span class="none"></span>Welcome</a></li>
+ <li><a href="../downloads.html" title="Downloads"><span class="none"></span>Downloads</a></li>
+ <li><a href="../articles.html" title="Articles"><span class="none"></span>Articles</a></li>
+ <li><a href="../frequently-asked-questions.html" title="FAQ"><span class="none"></span>FAQ</a></li>
+ <li><a href="https://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" class="externalLink" title="Archived Jackrabbit Wiki"><span class="none"></span>Archived Jackrabbit Wiki</a></li>
+ <li><a href="../jackrabbit-history.html" title="Jackrabbit History"><span class="none"></span>Jackrabbit History</a></li>
+ <li class="nav-header">Documentation</li>
+ <li><a href="../getting-started-with-apache-jackrabbit.html" title="Getting Started"><span class="none"></span>Getting Started</a></li>
+ <li><a href="../standalone-server.html" title="Standalone Server"><span class="none"></span>Standalone Server</a></li>
+ <li><a href="../jackrabbit-components.html" title="Jackrabbit Components"><span class="none"></span>Jackrabbit Components</a></li>
+ <li><a href="../first-hops.html" title="First Hops"><span class="none"></span>First Hops</a></li>
+ <li><a href="../jcr-api.html" title="JCR & API"><span class="none"></span>JCR & API</a></li>
+ <li><a href="../jackrabbit-architecture.html" title="Jackrabbit Architecture"><span class="none"></span>Jackrabbit Architecture</a></li>
+ <li><a href="../deployment-models.html" title="Deployment Models"><span class="none"></span>Deployment Models</a></li>
+ <li><a href="../jackrabbit-configuration.html" title="Jackrabbit Configuration"><span class="none"></span>Jackrabbit Configuration</a></li>
+ <li><a href="../node-types.html" title="Node Types"><span class="none"></span>Node Types</a></li>
+ <li><a href="../object-content-mapping.html" title="Object Content Mapping"><span class="none"></span>Object Content Mapping</a></li>
+ <li class="nav-header">Development</li>
+ <li><a href="../jackrabbit-team.html" title="Jackrabbit Team"><span class="none"></span>Jackrabbit Team</a></li>
+ <li><a href="../jackrabbit-roadmap.html" title="Jackrabbit Roadmap"><span class="none"></span>Jackrabbit Roadmap</a></li>
+ <li><a href="../building-jackrabbit.html" title="Building Jackrabbit"><span class="none"></span>Building Jackrabbit</a></li>
+ <li><a href="../mailing-lists.html" title="Mailing Lists"><span class="none"></span>Mailing Lists</a></li>
+ <li><a href="../issue-tracker.html" title="Issue Tracker"><span class="none"></span>Issue Tracker</a></li>
+ <li><a href="../source-repository.html" title="Source Repository"><span class="none"></span>Source Repository</a></li>
+ <li><a href="../continuous-integration.html" title="Continuous Integration"><span class="none"></span>Continuous Integration</a></li>
+ <li><a href="../website.html" title="Website"><span class="none"></span>Website</a></li>
+ <li><a href="../creating-releases.html" title="Creating Releases"><span class="none"></span>Creating Releases</a></li>
+ <li><a href="../supporting-software-attribution.html" title="Attribution"><span class="none"></span>Attribution</a></li>
+ <li class="nav-header">Apache Software Foundation</li>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="Introduction"><span class="none"></span>Introduction</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship"><span class="none"></span>Sponsorship</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Current Sponsors"><span class="none"></span>Current Sponsors</a></li>
+ <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Privacy"><span class="none"></span>Privacy</a></li>
+ </ul>
+ </nav>
<div class="well sidebar-nav">
-
-
- <ul class="nav nav-list">
- <li class="nav-header">Apache Jackrabbit</li>
-
- <li>
-
- <a href="../index.html" title="Welcome">
- <i class="none"></i>
- Welcome</a>
- </li>
-
- <li>
-
- <a href="../downloads.html" title="Downloads">
- <i class="none"></i>
- Downloads</a>
- </li>
-
- <li>
-
- <a href="../articles.html" title="Articles">
- <i class="none"></i>
- Articles</a>
- </li>
-
- <li>
-
- <a href="../frequently-asked-questions.html" title="FAQ">
- <i class="none"></i>
- FAQ</a>
- </li>
-
- <li>
-
- <a href="http://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" class="externalLink" title="Archived Jackrabbit Wiki">
- <i class="none"></i>
- Archived Jackrabbit Wiki</a>
- </li>
-
- <li>
-
- <a href="../jackrabbit-history.html" title="Jackrabbit History">
- <i class="none"></i>
- Jackrabbit History</a>
- </li>
- <li class="nav-header">Documentation</li>
-
- <li>
-
- <a href="../getting-started-with-apache-jackrabbit.html" title="Getting Started">
- <i class="none"></i>
- Getting Started</a>
- </li>
-
- <li>
-
- <a href="../standalone-server.html" title="Standalone Server">
- <i class="none"></i>
- Standalone Server</a>
- </li>
-
- <li>
-
- <a href="../jackrabbit-components.html" title="Jackrabbit Components">
- <i class="none"></i>
- Jackrabbit Components</a>
- </li>
-
- <li>
-
- <a href="../first-hops.html" title="First Hops">
- <i class="none"></i>
- First Hops</a>
- </li>
-
- <li>
-
- <a href="../jcr-api.html" title="JCR & API">
- <i class="none"></i>
- JCR & API</a>
- </li>
-
- <li>
-
- <a href="../jackrabbit-architecture.html" title="Jackrabbit Architecture">
- <i class="none"></i>
- Jackrabbit Architecture</a>
- </li>
-
- <li>
-
- <a href="../deployment-models.html" title="Deployment Models">
- <i class="none"></i>
- Deployment Models</a>
- </li>
-
- <li>
-
- <a href="../jackrabbit-configuration.html" title="Jackrabbit Configuration">
- <i class="none"></i>
- Jackrabbit Configuration</a>
- </li>
-
- <li>
-
- <a href="../node-types.html" title="Node Types">
- <i class="none"></i>
- Node Types</a>
- </li>
-
- <li>
-
- <a href="../object-content-mapping.html" title="Object Content Mapping">
- <i class="none"></i>
- Object Content Mapping</a>
- </li>
- <li class="nav-header">Development</li>
-
- <li>
-
- <a href="../jackrabbit-team.html" title="Jackrabbit Team">
- <i class="none"></i>
- Jackrabbit Team</a>
- </li>
-
- <li>
-
- <a href="../jackrabbit-roadmap.html" title="Jackrabbit Roadmap">
- <i class="none"></i>
- Jackrabbit Roadmap</a>
- </li>
-
- <li>
-
- <a href="../building-jackrabbit.html" title="Building Jackrabbit">
- <i class="none"></i>
- Building Jackrabbit</a>
- </li>
-
- <li>
-
- <a href="../mailing-lists.html" title="Mailing Lists">
- <i class="none"></i>
- Mailing Lists</a>
- </li>
-
- <li>
-
- <a href="../issue-tracker.html" title="Issue Tracker">
- <i class="none"></i>
- Issue Tracker</a>
- </li>
-
- <li>
-
- <a href="../source-repository.html" title="Source Repository">
- <i class="none"></i>
- Source Repository</a>
- </li>
-
- <li>
-
- <a href="../continuous-integration.html" title="Continuous Integration">
- <i class="none"></i>
- Continuous Integration</a>
- </li>
-
- <li>
-
- <a href="../website.html" title="Website">
- <i class="none"></i>
- Website</a>
- </li>
-
- <li>
-
- <a href="../creating-releases.html" title="Creating Releases">
- <i class="none"></i>
- Creating Releases</a>
- </li>
-
- <li>
-
- <a href="../supporting-software-attribution.html" title="Attribution">
- <i class="none"></i>
- Attribution</a>
- </li>
-
- <li>
-
- <a href="../privacy-policy.html" title="Privacy">
- <i class="none"></i>
- Privacy</a>
- </li>
- <li class="nav-header">Apache Software Foundation</li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="Introduction">
- <i class="none"></i>
- Introduction</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship">
- <i class="none"></i>
- Sponsorship</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Current Sponsors">
- <i class="none"></i>
- Current Sponsors</a>
- </li>
- </ul>
-
-
-
- <hr />
-
- <div id="poweredBy">
-
- <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
-
-
- <div class="g-plusone" data-href="http://www.apache.org/jackrabbit-site/" data-size="tall" ></div>
-
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
- </a>
- </div>
+ <hr />
+ <div id="poweredBy">
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <div class="clear"></div>
+<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
+ </div>
</div>
- </div>
-
-
- <div id="bodyColumn" class="span9" >
-
- <!-- Licensed to the Apache Software Foundation (ASF) under one or more
+ </header>
+ <main id="bodyColumn" class="span10" >
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
@@ -459,63 +183,54 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
- limitations under the License. --><div class="section">
-<h2>Basic OCM operations<a name="Basic_OCM_operations"></a></h2>
+ limitations under the License.
+-->
+<section>
+<h2><a name="Basic_OCM_operations"></a>Basic OCM operations</h2>
<p>When you have created a new <a href="object-content-manager.html">Object Content Manager</a> in your application, you can use this component to insert, update, delete and retrieve objects. The class ‘Folder’ used in the following sections has to be annotated or defined in a xml file class descriptor.</p>
-<p>This page describes only the main <a href="object-content-manager.html">Object Content Manager</a> methods. You can see the javadoc to get more information on the API. You can also read the tutorial <a href="5-with-jackrabbit-ocm.html">5’ with Jackrabbit OCM</a> to get more information on how to initialize the <a href="ocm">Object Content Manager</a>.</p></div>
-<div class="section">
-<h2>Insert<a name="Insert"></a></h2>
+<p>This page describes only the main <a href="object-content-manager.html">Object Content Manager</a> methods. You can see the javadoc to get more information on the API. You can also read the tutorial <a href="5-with-jackrabbit-ocm.html">5’ with Jackrabbit OCM</a> to get more information on how to initialize the <a href="ocm">Object Content Manager</a>.</p></section><section>
+<h2><a name="Insert"></a>Insert</h2>
<div class="source">
-<pre>Folder folder = new Folder();
+<div class="source"><pre class="prettyprint linenums">Folder folder = new Folder();
folder.setPath("/myfolder");
folder.set...(); // call the setter methods
ocm.insert(myFolder);
</pre></div></div>
-<div class="section">
-<h2>Retrieve and update an object<a name="Retrieve_and_update_an_object"></a></h2>
+</section><section>
+<h2><a name="Retrieve_and_update_an_object"></a>Retrieve and update an object</h2>
<div class="source">
-<pre>Folder folder = (Folder) persistenceManager.getObject(Folder.class, "/myfolder");
+<div class="source"><pre class="prettyprint linenums">Folder folder = (Folder) persistenceManager.getObject(Folder.class, "/myfolder");
folder.set...(); // call the setter methods
ocm.update(myFolder);
</pre></div></div>
-<div class="section">
-<h2>Delete<a name="Delete"></a></h2>
+</section><section>
+<h2><a name="Delete"></a>Delete</h2>
<div class="source">
-<pre>ocm.remove("/test");
+<div class="source"><pre class="prettyprint linenums">ocm.remove("/test");
</pre></div></div>
-<div class="section">
-<h2>Save last changes<a name="Save_last_changes"></a></h2>
-<p>After some inserts, deletes and/or updates, you can call the method <tt>ocm.save()</tt> to apply your changes into the JCR repository.</p></div>
- </div>
- </div>
- </div>
-
+</section><section>
+<h2><a name="Save_last_changes"></a>Save last changes</h2>
+<p>After some inserts, deletes and/or updates, you can call the method <code>ocm.save()</code> to apply your changes into the JCR repository.</p></section>
+ </main>
+ </div>
+ </div>
<hr/>
-
<footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p >Copyright © 2020
- <a href="http://www.apache.org/">The Apache Software Foundation</a>.
- All rights reserved.
-
- </p>
+ <div class="container-fluid">
+ <div class="row-fluid">
+<p>© 2022
+<a href="https://www.apache.org/">The Apache Software Foundation</a> | <a href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy Policy</a>
+</p>
</div>
-
-
-
-
-
-
<div id="ohloh" class="pull-right">
- <script type="text/javascript" src="http://www.ohloh.net/p/jackrabbit/widgets/project_users_logo.js"></script>
+ <script src="https://www.ohloh.net/p/jackrabbit/widgets/project_users_logo.js"></script>
</div>
</div>
</footer>
- </body>
+ </body>
</html>
\ No newline at end of file
Modified: jackrabbit/site/live/jcr/ocm/how-to-map-associations-between-objects.html
URL: http://svn.apache.org/viewvc/jackrabbit/site/live/jcr/ocm/how-to-map-associations-between-objects.html?rev=1900838&r1=1900837&r2=1900838&view=diff
==============================================================================
--- jackrabbit/site/live/jcr/ocm/how-to-map-associations-between-objects.html (original)
+++ jackrabbit/site/live/jcr/ocm/how-to-map-associations-between-objects.html Thu May 12 13:18:21 2022
@@ -1,452 +1,176 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at 2020-07-08
- | Rendered using Apache Maven Fluido Skin 1.3.1
+ | Generated by Apache Maven Doxia Site Renderer 1.9.2 from src\site\markdown/ocm\how-to-map-associations-between-objects.md at 2022-05-12
+ | Rendered using Apache Maven Fluido Skin 1.9
-->
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20200708" />
- <meta http-equiv="Content-Language" content="en" />
- <title>Apache Jackrabbit - How to map associations between objects</title>
- <link rel="stylesheet" href="../css/apache-maven-fluido-1.3.1.min.css" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 1.9.2" />
+ <title>Apache Jackrabbit – How to map associations between objects</title>
+ <link rel="stylesheet" href="../css/apache-maven-fluido-1.9.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
-
-
- <script type="text/javascript" src="../js/apache-maven-fluido-1.3.1.min.js"></script>
-
-
- </head>
- <body class="topBarEnabled">
-
-
-
-
-
-
- <a href="http://github.com/apache/jackrabbit">
+ <script src="../js/apache-maven-fluido-1.9.min.js"></script>
+<!-- Matomo -->
+<script>
+ var _paq = window._paq = window._paq || [];
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+ /* We explicitly disable cookie tracking to avoid privacy issues */
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="https://matomo.privacy.apache.org/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '4']);
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+ g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
+ })();
+</script>
+<!-- End Matomo Code -->
+ </head>
+ <body class="topBarEnabled">
+ <a href="https://github.com/apache/jackrabbit">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"
alt="Fork me on GitHub">
</a>
-
-
-
-
-
- <div id="topbar" class="navbar navbar-fixed-top ">
+ <header id="topbar" class="navbar navbar-fixed-top ">
<div class="navbar-inner">
- <div class="container-fluid">
+ <div class="container-fluid">
<a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
-
- <a class="brand" href="../index.html" title="Apache Jackrabbit">
-
-
- <img src="../images/logos/jlogo.gif" alt="Apache Jackrabbit" />
-
- </a>
-
- <ul class="nav">
- <li class="dropdown">
+<a class="brand" href="../index.html" title="Apache Jackrabbit"><img src="../images/logos/jlogo.gif" alt="Apache Jackrabbit" />
+</a>
+ <ul class="nav">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Jackrabbit <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="../index.html" title="Welcome">Welcome</a>
-</li>
-
- <li> <a href="../downloads.html" title="Downloads">Downloads</a>
-</li>
-
- <li> <a href="../articles.html" title="Articles">Articles</a>
-</li>
-
- <li> <a href="../frequently-asked-questions.html" title="FAQ">FAQ</a>
-</li>
-
- <li> <a href="http://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" title="Archived Jackrabbit Wiki">Archived Jackrabbit Wiki</a>
-</li>
-
- <li> <a href="../jackrabbit-history.html" title="Jackrabbit History">Jackrabbit History</a>
-</li>
- </ul>
+ <li><a href="../index.html" title="Welcome">Welcome</a></li>
+ <li><a href="../downloads.html" title="Downloads">Downloads</a></li>
+ <li><a href="../articles.html" title="Articles">Articles</a></li>
+ <li><a href="../frequently-asked-questions.html" title="FAQ">FAQ</a></li>
+ <li><a href="https://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" title="Archived Jackrabbit Wiki">Archived Jackrabbit Wiki</a></li>
+ <li><a href="../jackrabbit-history.html" title="Jackrabbit History">Jackrabbit History</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentation <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="../getting-started-with-apache-jackrabbit.html" title="Getting Started">Getting Started</a>
-</li>
-
- <li> <a href="../standalone-server.html" title="Standalone Server">Standalone Server</a>
-</li>
-
- <li> <a href="../jackrabbit-components.html" title="Jackrabbit Components">Jackrabbit Components</a>
-</li>
-
- <li> <a href="../first-hops.html" title="First Hops">First Hops</a>
-</li>
-
- <li> <a href="../jcr-api.html" title="JCR & API">JCR & API</a>
-</li>
-
- <li> <a href="../jackrabbit-architecture.html" title="Jackrabbit Architecture">Jackrabbit Architecture</a>
-</li>
-
- <li> <a href="../deployment-models.html" title="Deployment Models">Deployment Models</a>
-</li>
-
- <li> <a href="../jackrabbit-configuration.html" title="Jackrabbit Configuration">Jackrabbit Configuration</a>
-</li>
-
- <li> <a href="../node-types.html" title="Node Types">Node Types</a>
-</li>
-
- <li> <a href="../object-content-mapping.html" title="Object Content Mapping">Object Content Mapping</a>
-</li>
- </ul>
+ <li><a href="../getting-started-with-apache-jackrabbit.html" title="Getting Started">Getting Started</a></li>
+ <li><a href="../standalone-server.html" title="Standalone Server">Standalone Server</a></li>
+ <li><a href="../jackrabbit-components.html" title="Jackrabbit Components">Jackrabbit Components</a></li>
+ <li><a href="../first-hops.html" title="First Hops">First Hops</a></li>
+ <li><a href="../jcr-api.html" title="JCR & API">JCR & API</a></li>
+ <li><a href="../jackrabbit-architecture.html" title="Jackrabbit Architecture">Jackrabbit Architecture</a></li>
+ <li><a href="../deployment-models.html" title="Deployment Models">Deployment Models</a></li>
+ <li><a href="../jackrabbit-configuration.html" title="Jackrabbit Configuration">Jackrabbit Configuration</a></li>
+ <li><a href="../node-types.html" title="Node Types">Node Types</a></li>
+ <li><a href="../object-content-mapping.html" title="Object Content Mapping">Object Content Mapping</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Development <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="../jackrabbit-team.html" title="Jackrabbit Team">Jackrabbit Team</a>
-</li>
-
- <li> <a href="../jackrabbit-roadmap.html" title="Jackrabbit Roadmap">Jackrabbit Roadmap</a>
-</li>
-
- <li> <a href="../building-jackrabbit.html" title="Building Jackrabbit">Building Jackrabbit</a>
-</li>
-
- <li> <a href="../mailing-lists.html" title="Mailing Lists">Mailing Lists</a>
-</li>
-
- <li> <a href="../issue-tracker.html" title="Issue Tracker">Issue Tracker</a>
-</li>
-
- <li> <a href="../source-repository.html" title="Source Repository">Source Repository</a>
-</li>
-
- <li> <a href="../continuous-integration.html" title="Continuous Integration">Continuous Integration</a>
-</li>
-
- <li> <a href="../website.html" title="Website">Website</a>
-</li>
-
- <li> <a href="../creating-releases.html" title="Creating Releases">Creating Releases</a>
-</li>
-
- <li> <a href="../supporting-software-attribution.html" title="Attribution">Attribution</a>
-</li>
-
- <li> <a href="../privacy-policy.html" title="Privacy">Privacy</a>
-</li>
- </ul>
+ <li><a href="../jackrabbit-team.html" title="Jackrabbit Team">Jackrabbit Team</a></li>
+ <li><a href="../jackrabbit-roadmap.html" title="Jackrabbit Roadmap">Jackrabbit Roadmap</a></li>
+ <li><a href="../building-jackrabbit.html" title="Building Jackrabbit">Building Jackrabbit</a></li>
+ <li><a href="../mailing-lists.html" title="Mailing Lists">Mailing Lists</a></li>
+ <li><a href="../issue-tracker.html" title="Issue Tracker">Issue Tracker</a></li>
+ <li><a href="../source-repository.html" title="Source Repository">Source Repository</a></li>
+ <li><a href="../continuous-integration.html" title="Continuous Integration">Continuous Integration</a></li>
+ <li><a href="../website.html" title="Website">Website</a></li>
+ <li><a href="../creating-releases.html" title="Creating Releases">Creating Releases</a></li>
+ <li><a href="../supporting-software-attribution.html" title="Attribution">Attribution</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Software Foundation <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="http://www.apache.org/foundation/how-it-works.html" title="Introduction">Introduction</a>
-</li>
-
- <li> <a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a>
-</li>
-
- <li> <a href="http://www.apache.org/foundation/thanks.html" title="Current Sponsors">Current Sponsors</a>
-</li>
- </ul>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" title="Introduction">Introduction</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" title="Current Sponsors">Current Sponsors</a></li>
+ <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" title="Privacy">Privacy</a></li>
+ </ul>
</li>
- </ul>
-
-
-
-
- </div>
-
+ </ul>
</div>
</div>
- </div>
-
- <div class="container-fluid">
- <div id="banner">
- <div class="pull-left">
- <div id="bannerLeft">
- <h2>Apache Jackrabbit Site</h2>
- </div>
- </div>
- <div class="pull-right"> </div>
- <div class="clear"><hr/></div>
- </div>
-
- <div id="breadcrumbs">
- <ul class="breadcrumb">
-
-
- <li id="publishDate">Last Published: 2020-07-08
- </li>
-
-
-
-
- </ul>
- </div>
+ </header>
+ <div class="container-fluid">
+ <header>
+ <div id="banner">
+ <div class="pull-left"><div id="bannerLeft"><h2>Apache Jackrabbit Site</h2>
+</div>
+</div>
+ <div class="pull-right"></div>
+ <div class="clear"><hr/></div>
+ </div>
-
+ <div id="breadcrumbs">
+ <ul class="breadcrumb">
+ <li id="publishDate">Last Published: 2022-05-12</li>
+ </ul>
+ </div>
+ </header>
<div class="row-fluid">
- <div id="leftColumn" class="span3">
+ <header id="leftColumn" class="span2">
+ <nav class="well sidebar-nav">
+ <ul class="nav nav-list">
+ <li class="nav-header">Apache Jackrabbit</li>
+ <li><a href="../index.html" title="Welcome"><span class="none"></span>Welcome</a></li>
+ <li><a href="../downloads.html" title="Downloads"><span class="none"></span>Downloads</a></li>
+ <li><a href="../articles.html" title="Articles"><span class="none"></span>Articles</a></li>
+ <li><a href="../frequently-asked-questions.html" title="FAQ"><span class="none"></span>FAQ</a></li>
+ <li><a href="https://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" class="externalLink" title="Archived Jackrabbit Wiki"><span class="none"></span>Archived Jackrabbit Wiki</a></li>
+ <li><a href="../jackrabbit-history.html" title="Jackrabbit History"><span class="none"></span>Jackrabbit History</a></li>
+ <li class="nav-header">Documentation</li>
+ <li><a href="../getting-started-with-apache-jackrabbit.html" title="Getting Started"><span class="none"></span>Getting Started</a></li>
+ <li><a href="../standalone-server.html" title="Standalone Server"><span class="none"></span>Standalone Server</a></li>
+ <li><a href="../jackrabbit-components.html" title="Jackrabbit Components"><span class="none"></span>Jackrabbit Components</a></li>
+ <li><a href="../first-hops.html" title="First Hops"><span class="none"></span>First Hops</a></li>
+ <li><a href="../jcr-api.html" title="JCR & API"><span class="none"></span>JCR & API</a></li>
+ <li><a href="../jackrabbit-architecture.html" title="Jackrabbit Architecture"><span class="none"></span>Jackrabbit Architecture</a></li>
+ <li><a href="../deployment-models.html" title="Deployment Models"><span class="none"></span>Deployment Models</a></li>
+ <li><a href="../jackrabbit-configuration.html" title="Jackrabbit Configuration"><span class="none"></span>Jackrabbit Configuration</a></li>
+ <li><a href="../node-types.html" title="Node Types"><span class="none"></span>Node Types</a></li>
+ <li><a href="../object-content-mapping.html" title="Object Content Mapping"><span class="none"></span>Object Content Mapping</a></li>
+ <li class="nav-header">Development</li>
+ <li><a href="../jackrabbit-team.html" title="Jackrabbit Team"><span class="none"></span>Jackrabbit Team</a></li>
+ <li><a href="../jackrabbit-roadmap.html" title="Jackrabbit Roadmap"><span class="none"></span>Jackrabbit Roadmap</a></li>
+ <li><a href="../building-jackrabbit.html" title="Building Jackrabbit"><span class="none"></span>Building Jackrabbit</a></li>
+ <li><a href="../mailing-lists.html" title="Mailing Lists"><span class="none"></span>Mailing Lists</a></li>
+ <li><a href="../issue-tracker.html" title="Issue Tracker"><span class="none"></span>Issue Tracker</a></li>
+ <li><a href="../source-repository.html" title="Source Repository"><span class="none"></span>Source Repository</a></li>
+ <li><a href="../continuous-integration.html" title="Continuous Integration"><span class="none"></span>Continuous Integration</a></li>
+ <li><a href="../website.html" title="Website"><span class="none"></span>Website</a></li>
+ <li><a href="../creating-releases.html" title="Creating Releases"><span class="none"></span>Creating Releases</a></li>
+ <li><a href="../supporting-software-attribution.html" title="Attribution"><span class="none"></span>Attribution</a></li>
+ <li class="nav-header">Apache Software Foundation</li>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="Introduction"><span class="none"></span>Introduction</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship"><span class="none"></span>Sponsorship</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Current Sponsors"><span class="none"></span>Current Sponsors</a></li>
+ <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Privacy"><span class="none"></span>Privacy</a></li>
+ </ul>
+ </nav>
<div class="well sidebar-nav">
-
-
- <ul class="nav nav-list">
- <li class="nav-header">Apache Jackrabbit</li>
-
- <li>
-
- <a href="../index.html" title="Welcome">
- <i class="none"></i>
- Welcome</a>
- </li>
-
- <li>
-
- <a href="../downloads.html" title="Downloads">
- <i class="none"></i>
- Downloads</a>
- </li>
-
- <li>
-
- <a href="../articles.html" title="Articles">
- <i class="none"></i>
- Articles</a>
- </li>
-
- <li>
-
- <a href="../frequently-asked-questions.html" title="FAQ">
- <i class="none"></i>
- FAQ</a>
- </li>
-
- <li>
-
- <a href="http://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" class="externalLink" title="Archived Jackrabbit Wiki">
- <i class="none"></i>
- Archived Jackrabbit Wiki</a>
- </li>
-
- <li>
-
- <a href="../jackrabbit-history.html" title="Jackrabbit History">
- <i class="none"></i>
- Jackrabbit History</a>
- </li>
- <li class="nav-header">Documentation</li>
-
- <li>
-
- <a href="../getting-started-with-apache-jackrabbit.html" title="Getting Started">
- <i class="none"></i>
- Getting Started</a>
- </li>
-
- <li>
-
- <a href="../standalone-server.html" title="Standalone Server">
- <i class="none"></i>
- Standalone Server</a>
- </li>
-
- <li>
-
- <a href="../jackrabbit-components.html" title="Jackrabbit Components">
- <i class="none"></i>
- Jackrabbit Components</a>
- </li>
-
- <li>
-
- <a href="../first-hops.html" title="First Hops">
- <i class="none"></i>
- First Hops</a>
- </li>
-
- <li>
-
- <a href="../jcr-api.html" title="JCR & API">
- <i class="none"></i>
- JCR & API</a>
- </li>
-
- <li>
-
- <a href="../jackrabbit-architecture.html" title="Jackrabbit Architecture">
- <i class="none"></i>
- Jackrabbit Architecture</a>
- </li>
-
- <li>
-
- <a href="../deployment-models.html" title="Deployment Models">
- <i class="none"></i>
- Deployment Models</a>
- </li>
-
- <li>
-
- <a href="../jackrabbit-configuration.html" title="Jackrabbit Configuration">
- <i class="none"></i>
- Jackrabbit Configuration</a>
- </li>
-
- <li>
-
- <a href="../node-types.html" title="Node Types">
- <i class="none"></i>
- Node Types</a>
- </li>
-
- <li>
-
- <a href="../object-content-mapping.html" title="Object Content Mapping">
- <i class="none"></i>
- Object Content Mapping</a>
- </li>
- <li class="nav-header">Development</li>
-
- <li>
-
- <a href="../jackrabbit-team.html" title="Jackrabbit Team">
- <i class="none"></i>
- Jackrabbit Team</a>
- </li>
-
- <li>
-
- <a href="../jackrabbit-roadmap.html" title="Jackrabbit Roadmap">
- <i class="none"></i>
- Jackrabbit Roadmap</a>
- </li>
-
- <li>
-
- <a href="../building-jackrabbit.html" title="Building Jackrabbit">
- <i class="none"></i>
- Building Jackrabbit</a>
- </li>
-
- <li>
-
- <a href="../mailing-lists.html" title="Mailing Lists">
- <i class="none"></i>
- Mailing Lists</a>
- </li>
-
- <li>
-
- <a href="../issue-tracker.html" title="Issue Tracker">
- <i class="none"></i>
- Issue Tracker</a>
- </li>
-
- <li>
-
- <a href="../source-repository.html" title="Source Repository">
- <i class="none"></i>
- Source Repository</a>
- </li>
-
- <li>
-
- <a href="../continuous-integration.html" title="Continuous Integration">
- <i class="none"></i>
- Continuous Integration</a>
- </li>
-
- <li>
-
- <a href="../website.html" title="Website">
- <i class="none"></i>
- Website</a>
- </li>
-
- <li>
-
- <a href="../creating-releases.html" title="Creating Releases">
- <i class="none"></i>
- Creating Releases</a>
- </li>
-
- <li>
-
- <a href="../supporting-software-attribution.html" title="Attribution">
- <i class="none"></i>
- Attribution</a>
- </li>
-
- <li>
-
- <a href="../privacy-policy.html" title="Privacy">
- <i class="none"></i>
- Privacy</a>
- </li>
- <li class="nav-header">Apache Software Foundation</li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="Introduction">
- <i class="none"></i>
- Introduction</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship">
- <i class="none"></i>
- Sponsorship</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Current Sponsors">
- <i class="none"></i>
- Current Sponsors</a>
- </li>
- </ul>
-
-
-
- <hr />
-
- <div id="poweredBy">
-
- <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
-
-
- <div class="g-plusone" data-href="http://www.apache.org/jackrabbit-site/" data-size="tall" ></div>
-
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
- </a>
- </div>
+ <hr />
+ <div id="poweredBy">
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <div class="clear"></div>
+<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
+ </div>
</div>
- </div>
-
-
- <div id="bodyColumn" class="span9" >
-
- <!-- Licensed to the Apache Software Foundation (ASF) under one or more
+ </header>
+ <main id="bodyColumn" class="span10" >
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
@@ -459,25 +183,23 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
- limitations under the License. --><h1>How to map associations between objects</h1>
-<div class="section">
-<h2>Overview<a name="Overview"></a></h2>
-<p>This tutorial explains how to map associations between objects (1:1 and 1:n). You can find the tutorial code sample from <a href="Beans_and_collections.zip">here</a> . It is based on Maven and ready to be used inside Eclipse. If you have some configuration issues, please review the tutorial “[A simple OCM project with Maven & Eclipse]”. </p></div>
-<div class="section">
-<h2>The Content Model<a name="The_Content_Model"></a></h2>
-<p>We will extend the content model created in the previous tutorial <a href="5-with-jackrabbit-ocm.html">5’ with Jackrabbit OCM</a>. Each PressRelease is made by an Author and it is possible to add some references (URL). </p>
-<p>So, we have to add 2 new associations in our model : </p>
-
+ limitations under the License.
+-->
+<h1>How to map associations between objects</h1><section>
+<h2><a name="Overview"></a>Overview</h2>
+<p>This tutorial explains how to map associations between objects (1:1 and 1:n). You can find the tutorial code sample from <a href="Beans_and_collections.zip">here</a> . It is based on Maven and ready to be used inside Eclipse. If you have some configuration issues, please review the tutorial “[A simple OCM project with Maven & Eclipse]”.</p></section><section>
+<h2><a name="The_Content_Model"></a>The Content Model</h2>
+<p>We will extend the content model created in the previous tutorial <a href="5-with-jackrabbit-ocm.html">5’ with Jackrabbit OCM</a>. Each PressRelease is made by an Author and it is possible to add some references (URL).</p>
+<p>So, we have to add 2 new associations in our model :</p>
<ul>
-
+
<li>An 1:1 association between a PressRelease and an Author.</li>
-
<li>An 1:n association between PresseRelease and Url.</li>
</ul>
-<p>Here is the main java class, the PressRelease : </p>
+<p>Here is the main java class, the PressRelease :</p>
<div class="source">
-<pre>@Node
+<div class="source"><pre class="prettyprint linenums">@Node
public class PressRelease
{
@Field(path=true) private String path;
@@ -486,98 +208,122 @@ public class PressRelease
@Field private String content;
@Bean private Author author;
@Collection List<Url> urls;
-
+
//if you want a map instead of a list, use the following declaration
@Collection Map<String,Url> map;
-
+
[... Add here getters & setters ...]
}
-</pre></div>
-<p>Since the tutorial <a href="5-with-jackrabbit-ocm.html">5’ with Jackrabbit OCM</a>, we can understand the goal of the annotations <tt>@Node</tt> and <tt>@Field</tt>. An association 1:1 can be specified with the annotation <tt>@Bean</tt> like </p>
+</pre></div></div>
+
+<p>Since the tutorial <a href="5-with-jackrabbit-ocm.html">5’ with Jackrabbit OCM</a>, we can understand the goal of the annotations <code>@Node</code> and <code>@Field</code>. An association 1:1 can be specified with the annotation <code>@Bean</code> like</p>
<div class="source">
-<pre>@Bean private Author author;
-</pre></div>
-<p>It is possible to set extra settings with this annotation but it is out of the scope of this tutorial.You can review the code of the Author class which is very simple. As you will see, it is not mandatory to add annotation <tt>@Field(path=true)</tt> in the Author class because it is an aggregation of a PressRelease.</p>
-<p>An 1:n association can be specified with the annotation <tt>@Collection</tt> like </p>
+<div class="source"><pre class="prettyprint linenums">@Bean private Author author;
+</pre></div></div>
+
+<p>It is possible to set extra settings with this annotation but it is out of the scope of this tutorial.You can review the code of the Author class which is very simple. As you will see, it is not mandatory to add annotation <code>@Field(path=true)</code> in the Author class because it is an aggregation of a PressRelease.</p>
+<p>An 1:n association can be specified with the annotation <code>@Collection</code> like</p>
<div class="source">
-<pre>@Collection List<Url> urls;
-</pre></div>
+<div class="source"><pre class="prettyprint linenums">@Collection List<Url> urls;
+</pre></div></div>
+
<p>For this kind of association, you can also use a Map instead of a Collection</p>
<div class="source">
-<pre>@Collection Map<String,Url> map;
-</pre></div>
-<p>Right now, the support of Map is limited to the usage of String for the key because the map key will be used as the Node name.</p></div>
-<div class="section">
-<h2>How are those objects stored in the repository ?<a name="How_are_those_objects_stored_in_the_repository_"></a></h2>
-<p>For this tutorial each java class is mapped into the “nt:unstructured” node type. Making this kind of mapping is quite flexible because it does not imply specific repository configuration. There is no constraints in the JCR repository. All constrains are defined in the java code. </p>
+<div class="source"><pre class="prettyprint linenums">@Collection Map<String,Url> map;
+</pre></div></div>
+<p>Right now, the support of Map is limited to the usage of String for the key because the map key will be used as the Node name.</p></section><section>
+<h2><a name="How_are_those_objects_stored_in_the_repository_.3F"></a>How are those objects stored in the repository ?</h2>
+<p>For this tutorial each java class is mapped into the “nt:unstructured” node type. Making this kind of mapping is quite flexible because it does not imply specific repository configuration. There is no constraints in the JCR repository. All constrains are defined in the java code.</p>
<blockquote>
-<p>Note : It is possible to associate a specific node type to each java class but this imply more repository configurations. It is also possible to change the corresponding JCR node structure by using specific Bean or Collection converters. Later, we will add more tutorials on OCM converters. </p>
+
+<p>Note : It is possible to associate a specific node type to each java class but this imply more repository configurations. It is also possible to change the corresponding JCR node structure by using specific Bean or Collection converters. Later, we will add more tutorials on OCM converters.</p>
</blockquote>
-<p>Following our example, the Author and Urls nodes will be created as subnodes of a press release. Here is an example of the correspoding JCR structure : </p>
+<p>Following our example, the Author and Urls nodes will be created as subnodes of a press release. Here is an example of the correspoding JCR structure :</p>
+<ul>
-<div class="source">
-<pre>- PressRelease_1
- * path : "/mypath/myrelease"
- * title : "..."
- * pubDate : 10/06/08
- * content : "...."
- - Author
- * firstName : "..."
- * lastName : "..."
- - urls
- * url1
- * url : "http://...."
- * caption : "..."
- * description : "..."
- * url2
- * url : "http://...."
- * caption : "..."
- * description : "..."
- ...
- - map
- * Apache
- * url : "http://www.apache.org"
- * caption : "..."
- * description : "..."
-
- * Jackrabbit
- * url : "http://jackrabbit.apache.org"
- * caption : "..."
- * description : "..."
-</pre></div></div>
-<div class="section">
-<h2>Download the tutorial code<a name="Download_the_tutorial_code"></a></h2>
-<p>You can download the OCM project from <a href="Beans_and_collections.zip">here</a></p></div>
- </div>
- </div>
- </div>
+<li>PressRelease_1
+<ul>
- <hr/>
+<li>path : “/mypath/myrelease”
+<ul>
+<li>title : “…”</li>
+<li>pubDate : 10/06/08</li>
+<li>content : “….”</li>
+<li>Author
+<ul>
+
+<li>firstName : “…”</li>
+<li>lastName : “…”</li>
+</ul>
+</li>
+<li>urls
+<ul>
+
+<li>url1
+<ul>
+
+<li>url : “<a class="externalLink" href="http://.">http://.</a>...”</li>
+<li>caption : “…”</li>
+<li>description : “…”</li>
+</ul>
+</li>
+<li>url2
+<ul>
+
+<li>url : “<a class="externalLink" href="http://.">http://.</a>...”</li>
+<li>caption : “…”</li>
+<li>description : “…” …</li>
+</ul>
+</li>
+</ul>
+</li>
+<li>map</li>
+<li>Apache
+<ul>
+
+<li>url : “<a class="externalLink" href="http://www.apache.org">http://www.apache.org</a>”</li>
+<li>caption : “…”</li>
+<li>description : “…”</li>
+</ul>
+</li>
+<li>
+
+<p>Jackrabbit</p>
+<ul>
+
+<li>url : “<a class="externalLink" href="http://jackrabbit.apache.org">http://jackrabbit.apache.org</a>”</li>
+<li>caption : “…”</li>
+<li>description : “…”</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul></section><section>
+<h2><a name="Download_the_tutorial_code"></a>Download the tutorial code</h2>
+<p>You can download the OCM project from <a href="Beans_and_collections.zip">here</a></p></section>
+ </main>
+ </div>
+ </div>
+ <hr/>
<footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p >Copyright © 2020
- <a href="http://www.apache.org/">The Apache Software Foundation</a>.
- All rights reserved.
-
- </p>
+ <div class="container-fluid">
+ <div class="row-fluid">
+<p>© 2022
+<a href="https://www.apache.org/">The Apache Software Foundation</a> | <a href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy Policy</a>
+</p>
</div>
-
-
-
-
-
-
<div id="ohloh" class="pull-right">
- <script type="text/javascript" src="http://www.ohloh.net/p/jackrabbit/widgets/project_users_logo.js"></script>
+ <script src="https://www.ohloh.net/p/jackrabbit/widgets/project_users_logo.js"></script>
</div>
</div>
</footer>
- </body>
+ </body>
</html>
\ No newline at end of file