

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
5 messages in org.apache.jackrabbit.usersRe: mix:referenceable with OCM| From | Sent On | Attachments |
|---|---|---|
| Kaizer | Oct 4, 2007 4:00 am | |
| Felix Meschberger | Oct 4, 2007 4:49 am | |
| Christophe Lombart | Oct 4, 2007 5:33 am | |
| Kaizer | Oct 4, 2007 9:31 pm | |
| Christophe Lombart | Oct 5, 2007 12:26 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: mix:referenceable with OCM | Actions... |
|---|---|---|
| From: | Kaizer (Kaiz...@mastek.com) | |
| Date: | Oct 4, 2007 9:31:33 pm | |
| List: | org.apache.jackrabbit.users | |
Thanks a lot! I had a look at the test cases and that helped! But i had a few general queries.. 1. What are the advantages of using referencing here? One can still persist "anotherContent" by specifying its attributes in the mapping.xml, so when should i consider using referencing? 2. As per the documentation of ReferenceBeanConverterImpl, modifications on the referenced bean attributes are ignored. Does this mean that after persisting, if "anotherContent" is modified, the reference in "myContent" will not reflect the changes?
Thanks.
Regards Kaizer
Christophe Lombart wrote:
There are also some converters (bean & collection) to manage referenceable nodes. We should explain more in some docs but you can check the unit tests in the first time.
For ex.
you have a class like :
Class MyContent AnotherContent anotherContent
anotherContent (a bean attribute) can be mapped into a REFERENCE property. In this case, the bean cannot be updated.
If I did it correctly :-), the differente possibilities are in the unit test ObjectContentManagerUuidTest. Check the object model and its mapping definition to get more idea on how to map.
On 10/4/07, Felix Meschberger <fmes...@gmail.com> wrote:
Am Donnerstag, den 04.10.2007, 04:00 -0700 schrieb Kaizer:
I'm a little confused about how the mix:referenceable works in OCM. The uuid will be stored as an attribute in my class but how is the reference stored? I'd appreciate it if someone can explain with an example.
Not sure, whether I understand your question. The UUID is stored in the jcr:uuid property in the node and may be mapped to any field in your class. But you should consider that field read-only, as the repository manages the jcr:uuid property and won't let you change it (actually, OCM will not even try to write protected properties such as jcr:uuid).
If another node refers the mix:referenceable node, it stores that UUID in any property of type REFERENCE, which you may easily store in a String field.
Regards Felix
--
View this message in context:
http://www.nabble.com/mix%3Areferenceable-with--OCM-tf4568070.html#a13053367
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.







