Re: Jackrabbit support (paid or otherwise)

2009-12-08 Thread Christophe Lombart
+1 Christophe 2009/12/4 Michael Wechner michael.wech...@wyona.com Jukka Zitting wrote: Hi, On Thu, Dec 3, 2009 at 11:28 PM, Samuel Cox crankydi...@gmail.com wrote: I'm unaware of anything outside of what is published from the Jackrabbit site (this mailing list). Does anyone else know

Re: David's Model question : nt:unstructured and SNS

2009-11-18 Thread Christophe Lombart
Nice Discussion ! After making different projects based on Jackrabbit OCM, my opinion is changing (don't blame me, I'm one of the committer of the Jackrabbit OCM !). I came from the ORM technologies for building applications with many layers. The more layers we had, the better it was. But now,

Re: OCM

2009-10-26 Thread Christophe Lombart
It is supported but only by UUID. By path is also a good idea. It should be possible to add a new OCM Collection converter for supporting reference by path . Christophe 2009/10/23 Ben Short b...@benshort.co.uk: Hi, JCROM supports weak references as show in the following classes public

Re: OCM exceptions handling.

2009-10-09 Thread Christophe Lombart
Hi Mathias, Yes the patch can be useful.You can create a jira issue. Thanks Christophe 2009/10/7 Matías Mirabelli matias.mirabe...@globant.com: Hello guys, I hope all you're well. We're working with JackRabbit OCM and we need to trap specific exceptions depending on the context in which

Re: Case-sensitive search result.

2009-09-25 Thread Christophe Lombart
Not sure that is already possible with Jackrabbit (see http://issues.apache.org/jira/browse/JCR-952). You can sort your collection in java. Christophe 2009/9/24 Juan Pereyra juan.pere...@globant.com: Hello Marcos, guys, I couldn't either find the way to make OCM order the results without

Re: Question concerning ObjectContentManager

2009-09-21 Thread Christophe Lombart
The answer to this question will depend on how are you creating the jcr Sessions ? Don't forget that JCR sessions are not thread safe. In the same thread, it should be ok to have the same session for different ObjectContentManager but I have never test it this situation. Futhermore, what is the

Re: OCM annotation for a collection of references

2009-09-10 Thread Christophe Lombart
Also, is it possible to efficiently lookup a list of nodes which reference a particular node? I would like to search for nodes which reference a node (i.e. nodes which reference a tag in my case). Is there an automated way of doing this? With the OCM API, this is not possible but you can

Re: OCM calling setter method upon initialization

2009-09-10 Thread Christophe Lombart
Hi Anders, No, it is not possible. IMHO this is not a good design to have business rules in Domain object. You should try to move the code into some business services. br, Christophe 2009/9/10 Rimfrost74 anders.grus...@gmail.com: Hi, We use OCM to store domain objects in our repository.

Re: How to Filter on a Collection

2009-08-18 Thread Christophe Lombart
Hi Kristof, Sorry for the delay. The OCM query manager is not yet supporting queries with collection element properties but you can search content objects with a native JCR query (see ObjectContentManager.getObjects(String query, String language) or ObjectContentManager.getObjectIterator(String

Re: OCM: how to define String [] annotation

2009-08-11 Thread Christophe Lombart
Sorry for the delay ... I was on vacation :-) 2009/7/20 go canal goca...@yahoo.com Hi, Newbie question - googled but could not find an answer: how to annotate a String array field like this for ocm : private String [] tags; This is not yet supported. Christophe

Re: Testing for NotNull collection using OCM

2009-07-17 Thread Christophe Lombart
I can't believe I also missed something :-) filter.addNotNull(repositories) instead of filter.addNotNull(rcs) You have to use the java class attribute name, not the corresponding jcr name. HTH Christophe 2009/7/17 Ross Gardler rgard...@apache.org 2009/7/16 Christophe Lombart

Re: Testing for NotNull collection using OCM

2009-07-17 Thread Christophe Lombart
However, I can't figure out why that is, my original post (below) includes the relevant sections of the mapping.xml and class files. If I'm not doing something stupid I'll provide a patch for the test cases to reproduce the problem. Ross of course (even if it is working) you are

Re: hybrid Hibernate(JDBC)/OCM Objects

2009-07-17 Thread Christophe Lombart
Just my point of view : 1/ If your are using Jackrabbit/OCM for just storing Blobs and use Hibernate for your object mapping, you will add more complexicity in the code for almost nothing. If it is mandatory to keep a RDBMS, use Hibernate (with blob support). 2/ If your application is an heavy

Re: Testing for NotNull collection using OCM

2009-07-16 Thread Christophe Lombart
Can you check in the log (debug mode), the generated JCR query ? Maybe something is wrong with the generated query. Unfortunately, this method is not covered by the unit tests. 2009/7/14 Ross Gardler rgard...@apache.org I'm having a problem with collections and OCM, I'm probably missing

Re: Querying for bean references

2009-07-14 Thread Christophe Lombart
Hi Nigel, This kind of query (based on Bean fields) is not yet supported in OCM. Christophe 2009/7/14 Nigel Sim nigel@gmail.com Hi, I would like to compose a query to find all nodes which have a reference to another bean. ie: Class Image: Camera camera InputStream data Class

Re: OCM Node Definitions

2009-07-02 Thread Christophe Lombart
So, summarizing, is it possible to load namespace definitions without the CND or an XML? just with annotations? Everything that's needed seems to be there already. If you map some java classes to custom jcr node types, you have to register those types into your repository with CND or XML

Re: unable to load map via ocm from repository

2009-07-02 Thread Christophe Lombart
Can you put the log on debug to get more information on the retrieve process. Do you have getter setter on someMap ? 2009/7/1 Andreas Mucha sing...@gmx.net Hello all, i used OCM with annotations to save instances of class like this: @Node public class MyClass1 { @Field (path=true)

Re: OCM Node Definitions

2009-07-02 Thread Christophe Lombart
to sort of generate a CND on the fly and apply it to the repository. It's much clearer now. Thanks! Juan - Original Message - From: Christophe Lombart christophe.lomb...@gmail.com To: users@jackrabbit.apache.org Sent: Thursday, July 2, 2009 6:59:12 AM GMT -03:00 Argentina Subject

Re: java.lang.String has no descriptor in case of mapping a map

2009-06-30 Thread Christophe Lombart
By default, @Collection is not supporting maps based on String, String, the elements have to be beans based classes, not primitive types. If you want to use primitive types or wrapper classes, you have to use the collection converter MultiValueCollectionConverterImpl. There is a exemple in the

Re: Questions about OCM, production readiness and documentation status

2009-04-24 Thread Christophe Lombart
2009/4/24 Juan Pereyra juan.pere...@globant.com Hi guys, First of all my kudos to you for the great work so far, and now down to business. I'm analysing JackRabbit and the OCM for one of our clients and I came to notice the small amount of documentation on the OCM. I understand this is a

Re: Questions about OCM, production readiness and documentation status

2009-04-24 Thread Christophe Lombart
documentation. So far, everything I've found is a reference to the Unit Tests, is there anything I'm missing? unit test + http://jackrabbit.apache.org/object-content-mapping.html - Christophe Lombart christophe.lomb...@gmail.com wrote: 2009/4/24 Juan Pereyra juan.pere...@globant.com Hi

Re: Jackrabbit OCM Querying

2009-03-16 Thread Christophe Lombart
2009/3/16 David Purpura dpurp...@uci.edu: On 3/16/09 4:01 AM, Christophe Lombart christophe.lomb...@gmail.com wrote: Can you give more information on your mapped class (DocumentImpl) ? Which ocm version are you using ? I am using the Jackrabbit OCM 1.6 snapshot, downloaded around 6

Re: NoClassDefFoundError on OCM Test

2009-03-04 Thread Christophe Lombart
It looks like you are using the ocm namespace in your mapping definition. You have to register it. Here is a code example : public static final String OCM_NAMESPACE_PREFIX = ocm; public static final String OCM_NAMESPACE = http://jackrabbit.apache.org/ocm;;

Re: OCM, queries and version history

2009-02-10 Thread Christophe Lombart
Sorry for the delay, I don't thing this king of code would work : QueryManager queryManager = ocm.getQueryManager(); Filter filterChange = queryManager.createFilter(MyObject.class ); filterChange.setScope( /jcr:system/jcr:versionStrorage//);

Re: How do I configure Index Rules when using OCM

2009-01-28 Thread Christophe Lombart
Hi, I'm not a Jackrabbit index config expert but I'm wondering if it is not an error in the index-rule config, try to replace index-rule nodeType=nt:unstructured propertyclassName/property /index-rule by index-rule nodeType=nt:unstructured propertyocm_classname/property /index-rule

Re: How do I configure Index Rules when using OCM

2009-01-28 Thread Christophe Lombart
-Original Message- From: Christophe Lombart [mailto:christophe.lomb...@gmail.com] Sent: Wednesday, January 28, 2009 2:42 PM To: users@jackrabbit.apache.org Subject: Re: How do I configure Index Rules when using OCM Hi, I'm not a Jackrabbit index config expert but I'm wondering

Re: CASCADE operations

2009-01-22 Thread Christophe Lombart
What do you mean by cascading operations between nodes ? On Wed, Jan 21, 2009 at 01:47, Edgar Merino donvo...@gmail.com wrote: By the way, this is a question for OCM users. Edgar Merino escribió: Hello, I was wondering if there's support for cascading operations between nodes, if so,

Re: OCM, queries and version history

2009-01-16 Thread Christophe Lombart
Hi, Searching objects in the version history is not yet supported. For the moment, you can only get the version history and loop on the different versions (see the unit test AnnotationBasicVersionningTest). There is a workaround but this is not the ideal solution : Make your own jcr query to get

Re: JackRabbit ocm and pagination

2008-12-12 Thread Christophe Lombart
Hi no but this is certainly a On Fri, Dec 12, 2008 at 12:03, Ераскин Алексей e...@1c.ru wrote: Hi, guys! I wanna know if I can do in OCM following stuff: Query q = queryManager.createQuery(oneRecordStatement, Query.XPATH); QueryImpl query = (QueryImpl) q; query.setLimit(15);

Re: OCM and custom_nodetypes.xml

2008-12-02 Thread Christophe Lombart
On Mon, Dec 1, 2008 at 22:40, majohnst [EMAIL PROTECTED] wrote: If I am using OCM annotations, do I have to use the custom_nodetypes.xml? no, this is not mandatory in all cases. Furthermore, the usage of the custom_nodetypes is not depending on the OCM annotations or the OCM XML mapping file.

Re: OCM Sample code error

2008-12-01 Thread Christophe Lombart
of the 1.5-SNAPSHOT ? Thanks a lot. Best regards, Antoine Larcher Christophe Lombart wrote: Hi Antoine, The only thing is that, when switching to 1.5 and changing the type of Repository instance, it throwed an error concerning the configuration file in which Security node was ommited

Re: OCM Bean referencing Interface

2008-12-01 Thread Christophe Lombart
Hi Antoine, I have the same error here. it is a bug. Unfortunately, it seems that typed collections based on interface doesn't work well. There is a workaround. in the class EntityA, use the following setting for the list : @Collection(elementClassName=MyInterface.class)

Re: OCM ocm:discriminator NodeType

2008-11-28 Thread Christophe Lombart
Well done Charles ! Sorry I didn't see it. Thanks Christophe On Fri, Nov 28, 2008 at 04:06, Edgar Merino [EMAIL PROTECTED] wrote: So simple, so true (problem solved). Thank you, Edgar Merino Charles Brooking escribió: Edgar Merino wrote: After this, I try to register the nodetype

Re: Remove child nodes while iterating them

2008-11-28 Thread Christophe Lombart
Hi Edgar, Why do you mean by iterating a collection ? Are you iterating on a collection attribute to remove some elements or is it another use case ? If you want to remove some elements in a collection attribute, why not to set a refreshed collection into the attribute and make a save ? Let me

Re: OCM Sample code error

2008-11-28 Thread Christophe Lombart
). This is certainly due to the change in the security config made in Jackrabbit 1.5. br, Christophe Thanks for your help, Best regards, Antoine Larcher Christophe Lombart wrote: On Thu, Nov 27, 2008 at 10:37, alarcher [EMAIL PROTECTED] wrote: Christophe, Ok ! It works

Re: OCM Sample code error

2008-11-27 Thread Christophe Lombart
(/jcr:system tree, contains mainly versions) -- SearchIndex class=org.apache.jackrabbit.core.query.lucene.SearchIndex /SearchIndex /Repository Christophe Lombart wrote: Antoine With an empty maven repo, the second tutorial works fine here. Can you check

Re: OCM ocm:discriminator NodeType

2008-11-27 Thread Christophe Lombart
Christophe Lombart escribió: You have to register the ocm namespace before. Which OCM version are you using ? Christophe On Wed, Nov 26, 2008 at 15:26, Edgar Merino [EMAIL PROTECTED] wrote: Hello, I'm trying to get OCM running, however I'm encountering a problem when trying

Re: OCM ocm:discriminator NodeType

2008-11-26 Thread Christophe Lombart
You have to register the ocm namespace before. Which OCM version are you using ? Christophe On Wed, Nov 26, 2008 at 15:26, Edgar Merino [EMAIL PROTECTED] wrote: Hello, I'm trying to get OCM running, however I'm encountering a problem when trying to register the ocm:discriminator

Re: OCM Sample code error

2008-11-26 Thread Christophe Lombart
:) ). I'll come back to you when I found what were wrong (probably lib versions). Thanks again. Regards, Antoine Larcher Christophe Lombart wrote: This tutorial is based on maven. Check the pom.xml for the dependency versions. Are you using eclipse ? If yes, you can try

Re: OCM Sample code error

2008-11-25 Thread Christophe Lombart
It works here. Did you modify the tutorial code. Here is the tutorial output. Start the tutorial ... Insert a press release in the repository Retrieve a press release from the repository PressRelease title : This is the first tutorial on OCM PressRelease author : Christophe Lombart ** URLS

Re: OCM Sample code error

2008-11-25 Thread Christophe Lombart
, because it works in your environment. Sorry for my english mistakes, I'm french. Thanks again. Best regards, Antoine Larcher Christophe Lombart wrote: It works here. Did you modify the tutorial code. Here is the tutorial output. Start the tutorial ... Insert a press

Re: OCM Annotations constraint error

2008-11-14 Thread Christophe Lombart
If the namespace is well created in the repo, it is also possible to have a mistake in the property name defined in the mixin type ocm:discriminator. From 1.5, the name of the property has been changed into ocm_classname. Here is a example : nodeType name=ocm:discriminator isMixin=true

Re: Annotating a java.io.File type field in OCM

2008-11-13 Thread Christophe Lombart
JCR doesn't support java.io.File but you can create a utility method to get the InputStream from a File. InputStream is supported in Jackrabbit OCM. Christophe On Thu, Nov 13, 2008 at 01:42, Fard [EMAIL PROTECTED] wrote: Hello there, One of my filed has java.io.File type. I don't know how

Re: Annotating a java.io.File type field in OCM

2008-11-13 Thread Christophe Lombart
) at org.apache.jackrabbit.ocm.Main.startTutorial(Main.java:60) at org.apache.jackrabbit.ocm.Main.main(Main.java:134) Christophe Lombart wrote: JCR doesn't support java.io.File but you can create a utility method to get the InputStream from a File. InputStream is supported

Re: an alternative OCM (Object Content Mapping)

2008-11-11 Thread Christophe Lombart
OCM provides annotation support and version 1.5 is simpler than version 1.4. Anyway, let us know what is the complexity in OCM. We can work on it. It is always positive to receive comments on the work done. thanks, Christophe On Tue, Nov 11, 2008 at 10:58, Fabián Mandelbaum [EMAIL

Re: an alternative OCM (Object Content Mapping)

2008-11-11 Thread Christophe Lombart
On Tue, Nov 11, 2008 at 12:27, Aleksei Lukin [EMAIL PROTECTED] wrote: On Tuesday 11 November 2008 12:29:46 Boni Gopalan (BioImagene) wrote: OCM supports annotations and XML mappings. And it supports custom converters for simple types, Beans and collections. The only disagreement I have

Re: an alternative OCM (Object Content Mapping)

2008-11-11 Thread Christophe Lombart
-Original Message- From: Christophe Lombart [mailto:[EMAIL PROTECTED] Sent: 11 November 2008 16:43 To: users@jackrabbit.apache.org Subject: Re: an alternative OCM (Object Content Mapping) OCM provides annotation support and version 1.5 is simpler than version 1.4. Anyway, let us

Re: an alternative OCM (Object Content Mapping)

2008-11-11 Thread Christophe Lombart
On Tue, Nov 11, 2008 at 16:08, [EMAIL PROTECTED] wrote: 3. class registration in annotation mapper. I think global mpper cold handle this and @Node annoation may put registration code into. I'm constatntly forgetting to add class there :) Same problem here :-) . I'm still looking for

Re: Working with JackRabbit OCM

2008-11-10 Thread Christophe Lombart
On Mon, Nov 10, 2008 at 12:35, Ераскин Алексей [EMAIL PROTECTED] wrote: In result, collection isn't empty because OCM saves to repository to the text property(annotated field in Parent class) following value: this is child Why? Because the Child class extends the Parent Class (see

Re: OCM:The Size of a Lazily Loaded Collection

2008-10-17 Thread Christophe Lombart
For the lazy loading, we are using cglib. I'm not sure that it is possible because I don't know how to get the size of something that is not there :-). An alternative is to add a getCount method. This operation should help in many cases and the cost should not be expensive. br Christophe On

Re: The Size of a Lazily Loaded Collection

2008-10-17 Thread Christophe Lombart
On Fri, Oct 17, 2008 at 09:59, Boni Gopalan (BioImagene) [EMAIL PROTECTED] wrote: I see jackrabbit-ocm testcase thatis seamlessly using this feature. Looks like there is something wrong in my testcase. you mean something like : getCollection.getsize() ? In this case, the collection is

Re: OCM:To Path or Not to Path

2008-10-08 Thread Christophe Lombart
Personally, I like the rule 7 made by David. http://wiki.apache.org/jackrabbit/DavidsModel#head-79ca455cb5a0f371923912cc1418831f0e68f674 In all cases, OCM can manage UUID but please understand that many content applications can live without that. 2008/10/8 Aleksei Lukin [EMAIL PROTECTED]

Re: OCM:To Path or Not to Path

2008-10-05 Thread Christophe Lombart
On Fri, Oct 3, 2008 at 08:18, Boni Gopalan (BioImagene) [EMAIL PROTECTED] wrote: While implementing an Abstract DAO layer on top of OCM as part of a data management system we are building; I came across one issue. While the mapping of a Bean to a JcrNode could be specified either through

Re: OCM:Mapping a hashmap

2008-10-01 Thread Christophe Lombart
On Wed, Oct 1, 2008 at 12:06, Boni Gopalan (BioImagene) [EMAIL PROTECTED] wrote: Is there a simple was to map a collection of type MapString,String ? In point of view JCR, is it a multi value property ? If you want to map a multi value property into a java Map, we have to refactor the

Re: OCM:Mapping a hashmap

2008-10-01 Thread Christophe Lombart
:-) -Original Message- From: Christophe Lombart [mailto:[EMAIL PROTECTED] Sent: 01 October 2008 16:58 To: users@jackrabbit.apache.org Subject: Re: OCM:Mapping a hashmap On Wed, Oct 1, 2008 at 12:06, Boni Gopalan (BioImagene) [EMAIL PROTECTED] wrote: Is there a simple was to map

Re: Hybrid schemes with table and blob mapping for OCM?

2008-09-30 Thread Christophe Lombart
Hi, OCM is a object mapping for a content repository based on JCR (eg. Jackrabbit). this is not only used for binaries. It can be used for any kind of content. Here, we are only focusing on content repository. However, it is be possible to use a RDBMS and a content repo (JCR) from the same

Re: Hybrid schemes with table and blob mapping for OCM?

2008-09-30 Thread Christophe Lombart
lujie Christophe Lombart wrote: Hi, OCM is a object mapping for a content repository based on JCR (eg. Jackrabbit). this is not only used for binaries. It can be used for any kind of content. Here, we are only focusing on content repository. However, it is be possible to use

Re: OCM:Collection Element Node Names

2008-09-25 Thread Christophe Lombart
either with good news that it works or with testcase/patch. -Original Message- From: Christophe Lombart [mailto:[EMAIL PROTECTED] Sent: 24 September 2008 14:19 To: users@jackrabbit.apache.org Subject: Re: OCM:Collection Element Node Names The class DigesterDescriptorReader reads

Re: OCM:Collection Element Node Names

2008-09-24 Thread Christophe Lombart
: Christophe Lombart [mailto:[EMAIL PROTECTED] Sent: 24 September 2008 10:57 To: users@jackrabbit.apache.org Subject: Re: OCM:Collection Element Node Names This is not yet possible with the XML file mapping. With tha OCM annotation, you can use jcrElementName on @Collection. It should

Re: OCM:Issue and Resolution for DTD location (Specific to GWT)

2008-09-24 Thread Christophe Lombart
On Wed, Sep 24, 2008 at 09:59, Boni Gopalan (BioImagene) [EMAIL PROTECTED] wrote: I was hit with an issue on a GWT based application that uses JCR to store and retrieve data using OCM 1.5-SNAPSHOT. The issue was peculiar because though the CRUD test cases were all passing the Dao layer

Re: OCM:Mapping ListObject

2008-09-24 Thread Christophe Lombart
Please, give me more details on your desired mapping. Do you want to have a Collection of primitive types ? Do you want to map to multi val property ? Christophe On Wed, Sep 24, 2008 at 14:00, Boni Gopalan (BioImagene) [EMAIL PROTECTED] wrote: Hi : I need to map a collection by definition

Re: OCM:Mapping ListObject

2008-09-24 Thread Christophe Lombart
nceDelegateXMLNode.java:134) Thanks Boni -Original Message- From: Christophe Lombart [mailto:[EMAIL PROTECTED] Sent: 24 September 2008 18:04 To: users@jackrabbit.apache.org Subject: Re: OCM:Mapping ListObject Please, give me more details on your desired mapping. Do you want to have

Re: Jackrabbit OCM DTD

2008-09-23 Thread Christophe Lombart
not yet for OCM 1.5 On Tue, Sep 23, 2008 at 15:04, Boni Gopalan (BioImagene) [EMAIL PROTECTED] wrote: Is there a dtd for the bean mapping files available? I am facing issues with Sun Xerces parser crying over unparsable files because it cannot find the corresponding xsd or dtd. I looked

Re: OCM:Collection Element Node Names

2008-09-23 Thread Christophe Lombart
This is not yet possible with the XML file mapping. With tha OCM annotation, you can use jcrElementName on @Collection. It should not be difficult to add it in the XML mapping file definition. Christophe On Wed, Sep 24, 2008 at 06:31, Boni Gopalan (BioImagene) [EMAIL PROTECTED] wrote: I have

Re: Jackrabbit:OCM : Recursive Same Type Objects

2008-09-22 Thread Christophe Lombart
and Object as parameters. Did I reinvent any wheels? Can you give more details ? What kind of update is it ? Thanks Boni -Original Message- From: Christophe Lombart [mailto:[EMAIL PROTECTED] Sent: 19 September 2008 14:47 To: users@jackrabbit.apache.org Subject: Re: Jackrabbit:OCM

Re: Jackrabbit:OCM : Recursive Same Type Objects

2008-09-19 Thread Christophe Lombart
for a bean, no problem but we have to check this specific case within Collection. We have to add a unit test and a bug fix if needed. It is not working, please create a jira issue. I can work on it. Christophe On Fri, Sep 19, 2008 at 10:19, Boni Gopalan (BioImagene) [EMAIL PROTECTED] wrote:

Re: Why ObjectIterator from Jackrabbit OCM doesn't implement RangeIterator?

2008-09-17 Thread Christophe Lombart
On Wed, Sep 17, 2008 at 12:48, Sergey Nebolsin [EMAIL PROTECTED]wrote: Should I raise a Jira issue and attach the patch? Yes you are welcome to create a new jira issue Thanks Christophe Cheers -- Sergey Nebolsin Principal Software Engineer, Prophotos.ru

Re: OCM: how to persist Maps?

2008-08-28 Thread Christophe Lombart
Hi Alex, Yes, the Map support was not very good and I worked on that this week. With my latest commit, you can use a map like this : @Node public class MyClass { @Collection MapString,AnotherClass map; } Of course, HashMap is also supported. AnotherClass has to be a persistent class. Is

Re: Problem with OCM: Cannot write at /

2008-08-19 Thread Christophe Lombart
On Tue, Aug 19, 2008 at 02:21, Fabián Mandelbaum [EMAIL PROTECTED]wrote: Hello Christophe. With this test project I'm using the same security settings I'm using with a TransientRepository, that is, none (or the default JR settings). Do I have to set (JAAS?) security explicitly to be able

Re: Problem with OCM: Cannot write at /

2008-08-18 Thread Christophe Lombart
Hi, On Wed, Aug 6, 2008 at 19:29, Fabián Mandelbaum [EMAIL PROTECTED]wrote: And the exception stack trace is: repository.RepositoryException: org.apache.jackrabbit.ocm.exception.ObjectContentManagerException: Cannot persist current session changes.; nested exception is

Re: OCM exceptions: IncorrectPersistentClassException RepositoryException caused by NoSuchItemStateException

2008-08-05 Thread Christophe Lombart
), the InvalidItemStateException is thrown if the versionalbe node has unsaved changes pending, which clearly I am doing on the line before the checkin(). Do you have any input on this? Thanks for all your help. H. Wilson On Mon, 4 Aug 2008 15:46:23 +0200, Christophe Lombart [EMAIL PROTECTED] wrote: Is it not related

Re: Problem with OCM: Cannot write at /

2008-08-05 Thread Christophe Lombart
Did you review the first (and the only one :-( ) tutorial : http://jackrabbit.apache.org/5-with-jackrabbit-ocm.html http://jackrabbit.apache.org/a-simple-ocm-project-with-maven-eclipse.html However, when I try to store an entity (using ocm.insert(obj); ocm.save();) I get an exception stating

Re: OCM support for java.util.Map fields?

2008-07-10 Thread Christophe Lombart
implements ManageableCollection {} Correct? Do I really need to do this? And then I can use the DefaultCollectionConvertImpl to map this element, right? Thanks for your help! Leander -Ursprüngliche Nachricht- Von: Christophe Lombart [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 9

Re: OCM support for java.util.Map fields?

2008-07-09 Thread Christophe Lombart
Hi Leander, Map is not supported for the properties. only for subnodes. It should be possible to implement a new CollectionConverter for doing it. I will check if there is a jira issue for this features. Christophe On Wed, Jul 9, 2008 at 3:17 PM, Mario-Leander Reimer [EMAIL PROTECTED] wrote:

Re: OCM : Mapping a java.util.Map of referenced beans

2008-06-09 Thread Christophe Lombart
Hi Vincent, This feature is not yet supported. We have to change the converter BeanReferenceCollectionConverterImpl (mainly the method doGetCollection). If you have time, you can review the code in the DefaultCollectionConverterImpl. We have to make almost same for the doGetCollection. Please,

Re: OCM mapping to nt:file

2008-05-09 Thread Christophe Lombart
in OCM view? Looks similar, but... 4. Is it possible to update already existing mapping in repository somehow, when the class-definition is changed? If not - what is the best practice for such cases? thanks in advance, Vasilij Christophe Lombart wrote: Hi, There are some examples

Re: OCM mapping to nt:file

2008-05-09 Thread Christophe Lombart
On Fri, May 9, 2008 at 11:27 AM, Vpupkin [EMAIL PROTECTED] wrote: Hello again, Thank's for your answers, now it is mostly clear for me. CND : You say - CND : not yet supported. Does it means i can generate java-classes from XML-structure with OCM-compatible annotations? Have u link

Re: [jackrabbit OCM] Converting java.util.Properties object

2008-04-24 Thread Christophe Lombart
Hi AtomicTypeConverter is not appropriate for Collection and Map. The best approach is to annote this field with @Collection but java.util.Properties is not supported in OCM. You should write your own CollectionConverter (see examples in

Re: Persisting custom beans using ocm-annotations in jackrabbit

2008-04-11 Thread Christophe Lombart
Hi, I'm not sure that is the ideal use case for Jackrabbit OCM. Is it not better to import the xml doc with the JCR API ? If it is only to make some queries, OCM will not be a great help. The JCR query API should be sufficient. OCM becomes interesting if you need to use POJOs in your business

Re: 5' with Jackrabbit OCM

2008-04-10 Thread Christophe Lombart
read? Thanks in advance, Rokham Christophe Lombart wrote: Hi, It works for me with Jackrabbit 1.5-SNAPSHOT. Are you using the same jackrabbit version ? br, Christophe On Wed, Apr 9, 2008 at 6:19 PM, rokham [EMAIL PROTECTED] wrote: Hi, I'm

Re: OCM and Proprety.getLength() question

2008-04-10 Thread Christophe Lombart
Hi Alex, Yes it is not supported rigth now but I understand your needs. I like your solution 3. Maybe we make a try to have generic JCR expressions. If you want to contribute, please create a new Jira issue. Thanks, Christophe On Thu, Apr 10, 2008 at 2:05 AM, Alex Pakka [EMAIL PROTECTED]

Re: OCM and Proprety.getLength() question

2008-04-10 Thread Christophe Lombart
Hi Alex, Yes it is not supported rigth now but I understand your needs. I like your solution 3. Maybe we make a try to have generic JCR expressions. If you want to contribute, please create a new Jira issue. Thanks, Christophe On Thu, Apr 10, 2008 at 2:05 AM, Alex Pakka [EMAIL PROTECTED]

Re: OCM and Proprety.getLength() question

2008-04-10 Thread Christophe Lombart
Hi Alex, Yes it is not supported rigth now but I understand your needs. I like your solution 3. Maybe we make a try to have generic JCR expressions. If you want to contribute, please create a new Jira issue. Thanks, Christophe On Thu, Apr 10, 2008 at 2:05 AM, Alex Pakka [EMAIL PROTECTED]

Re: OCM mapping to nt:file

2008-04-04 Thread Christophe Lombart
Hi, There are some examples in the unit tests : nt:file http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-ocm/src/test/java/org/apache/jackrabbit/ocm/testmodel/File.java nt:resource

Re: OCM Collection Mapping

2008-03-27 Thread Christophe Lombart
After a first reading, it looks fine. Are sure that the creation was good ? In the unit tests, you can fin something similar to this case. Christophe On Thu, Mar 27, 2008 at 7:37 PM, duncanm [EMAIL PROTECTED] wrote: Is there any documentation which explains how to map child nodes using OCM?

Re: OCM - Help with lazy loading using proxy=true

2008-03-27 Thread Christophe Lombart
On Thu, Mar 27, 2008 at 9:25 PM, sgomez [EMAIL PROTECTED] wrote: Hi everyone. I'm trying to lazy load a collection mapped with the attribute proxy=true but it doesn't seem to work. Maybe I haven't understood the concept of lazy loading in this context, because I've read it waits until

Re: OCM: InstantiationException: plz help

2008-03-20 Thread Christophe Lombart
Hi, That's right, you have to defined a constructor without argument. It is quite difficult to give you some advises without knowing the application design but it is not possible to build a help class to convert the ocm pojo into your desired classes ? Christophe On Wed, Mar 19, 2008 at 5:22

Re: JNDI Configuration for Jackrabbit

2008-03-03 Thread Christophe Lombart
For me , it works with the instruction found here : http://jackrabbit.apache.org/shared-j2ee-resource-howto.html Christophe On Mon, Mar 3, 2008 at 3:31 PM, Sudhanshu Jain [EMAIL PROTECTED] wrote: Hi All, We have deployed jackrabbit-webapp-1.4.war on tomcat server. but the same does not

Re: OCM: nt:versionedChild problem

2008-03-02 Thread Christophe Lombart
Thanks for your patch. Can you create an issue in Jira for this patch. I will review and apply it. br, Christophe On Fri, Feb 29, 2008 at 9:58 PM, Wes [EMAIL PROTECTED] wrote: After digging thru the code I made the following changes that appear to solve the problem. Within

Re: [OCM] Unable to retrieve all versions of an item

2008-02-27 Thread Christophe Lombart
Xavier, I made a unit tests and I have the same behaviour. I'm going to continue my investigation and create a jira issue. It looks like a big bug within version management. This case was not well cover by the unit tests. Are you using 1.5-SNAPSHOT or another jackrabbit version ? br, Christophe

Re: [OCM] Unable to retrieve all versions of an item

2008-02-27 Thread Christophe Lombart
issue you created for this bug ? Thanks Xavier On Wed, Feb 27, 2008 at 9:23 AM, Christophe Lombart [EMAIL PROTECTED] wrote: Xavier, I made a unit tests and I have the same behaviour. I'm going to continue my investigation and create a jira issue. It looks like a big bug within

Re: [OCM] XAException when updating binary content

2008-02-21 Thread Christophe Lombart
at org.springmodules.jcr.jackrabbit.support.JackRabbitUserTransaction.commit( JackRabbitUserTransaction.java:110) at org.springmodules.jcr.jackrabbit.LocalTransactionManager.doCommit( LocalTransactionManager.java:192) ... 31 more Regards, Xavier On Wed, Feb 20, 2008 at 8:46 PM, Christophe Lombart [EMAIL PROTECTED

Re: [OCM] XAException when updating binary content

2008-02-20 Thread Christophe Lombart
Hi Xavier, Do you have the stack trace ? Christophe On Wed, Feb 20, 2008 at 7:06 PM, Xavier [EMAIL PROTECTED] wrote: Hello, I'm starting with Jackrabbit 1.4 w/ OCM + Spring 2.5 + SpringModules When I want to update an existing node that contains binary data (byte[]), I get the

Re: OCM issues with path and id fields (annotations)

2008-02-14 Thread Christophe Lombart
Is there a bug in JIRA to follow this change or is it already planned for a the coming-up release ? There is nothing right now but you are welcome to create a new Jira issue. I'm very busy this week but we can review this problem next week together. Thanks, Christophe

Re: OCM issues with path and id fields (annotations)

2008-02-13 Thread Christophe Lombart
On Feb 13, 2008 6:26 PM, Xavier [EMAIL PROTECTED] wrote: Hello, I'm beginning working with the Jackrabbit OCM extension and i'm stuck with the following issue on a very trivial example: in the 'Article' class, I defined fields for the content of an article, plus fields for 'path' and

Re: trivial OCM init code

2008-02-06 Thread Christophe Lombart
Thanks, I will added in Confluence. Such trivial setup of OCM, folks! :). The problem is that the node type creation is specific to the implementation and we would like to set OCM more independant. Let's try to find a solution to drop the ocm:discriminator.

Re: OCM: strange exceptions again

2008-02-06 Thread Christophe Lombart
On Feb 6, 2008 12:47 PM, Alex Lukin [EMAIL PROTECTED] wrote: org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException: No registered converter for a field based on the class :'class [ Ljava.lang.String;' How did populate your object ? it is trying to find a converter for the class

Re: OCM: are beans and collections allowed inside of collections?

2008-02-06 Thread Christophe Lombart
Did you register the class IncomingNode ? It seems that OCM didn't find it ClassDescriptor. like List classes = new ArrayList(); classes.add(IncomingNode.class); // Call this method for each persistent class classes.add(UserHome.class); // 3. Instantiate the

Re: OCM: are beans and collections allowed inside of collections?

2008-02-06 Thread Christophe Lombart
You are welcome. Another simplification is to avoid this kind of registration :-) but I don't know how we can do it without performance problems. On Feb 6, 2008 9:05 PM, Alex Lukin [EMAIL PROTECTED] wrote: Wednesday 06 February 2008 21:58:09 Christophe Lombart написав: Did you register

Re: Documentation for OCM

2008-01-31 Thread Christophe Lombart
We are working on the OCM documentation. For the moment, it is available here : http://jackrabbit.apache.org/JCR/object-content-mapping.html. Some parts are obsoles but we will try to fix it asap. Christophe On Jan 31, 2008 11:58 AM, vivek madurai [EMAIL PROTECTED] wrote: OCM looks very

  1   2   >