You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Xavier Coulon (JIRA)" <ji...@apache.org> on 2008/02/14 14:09:15 UTC
[jira] Created: (JCR-1385) UUID field not populated when saving a
new node
UUID field not populated when saving a new node
-----------------------------------------------
Key: JCR-1385
URL: https://issues.apache.org/jira/browse/JCR-1385
Project: Jackrabbit
Issue Type: Bug
Components: jackrabbit-ocm
Affects Versions: 1.4
Reporter: Xavier Coulon
In the following 'Article' class, there is are fields set to true for 'path' and 'uuid' jcr properties.
The mixins for referencing (hence, support for UUID) are declared at the @Node level of the class.
After saving the node with the ObjectContentManager, the uuid field is not populated as it could be expected
@Node(jcrMixinTypes="mix:referenceable,mix:lockable,mix:versionable")
public class Article {
@Field(uuid=true)
private String id = null;
@Field(path=true)
private String path = null;
@Field
private String content = null;
... constructor, getters and setters
}
The full discussion is here : http://www.nabble.com/OCM-issues-with-path-and-id-fields-%28annotations%29-tt15460625.html#a15460625
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (JCR-1385) UUID field not populated when saving a
new node
Posted by "Christophe Lombart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christophe Lombart reassigned JCR-1385:
---------------------------------------
Assignee: Christophe Lombart
> UUID field not populated when saving a new node
> -----------------------------------------------
>
> Key: JCR-1385
> URL: https://issues.apache.org/jira/browse/JCR-1385
> Project: Jackrabbit
> Issue Type: Bug
> Components: jackrabbit-ocm
> Affects Versions: 1.4
> Reporter: Xavier Coulon
> Assignee: Christophe Lombart
>
> In the following 'Article' class, there is are fields set to true for 'path' and 'uuid' jcr properties.
> The mixins for referencing (hence, support for UUID) are declared at the @Node level of the class.
> After saving the node with the ObjectContentManager, the uuid field is not populated as it could be expected
> @Node(jcrMixinTypes="mix:referenceable,mix:lockable,mix:versionable")
> public class Article {
> @Field(uuid=true)
> private String id = null;
>
> @Field(path=true)
> private String path = null;
>
> @Field
> private String content = null;
> ... constructor, getters and setters
> }
> The full discussion is here : http://www.nabble.com/OCM-issues-with-path-and-id-fields-%28annotations%29-tt15460625.html#a15460625
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (JCR-1385) UUID field not populated when saving a
new node
Posted by "Christophe Lombart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-1385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christophe Lombart resolved JCR-1385.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5
I just fixed this issue. Can you check if it is ok for you ?
Now, the uuid field is refreshed after calling the method insert or update.
> UUID field not populated when saving a new node
> -----------------------------------------------
>
> Key: JCR-1385
> URL: https://issues.apache.org/jira/browse/JCR-1385
> Project: Jackrabbit
> Issue Type: Bug
> Components: jackrabbit-ocm
> Affects Versions: 1.4
> Reporter: Xavier Coulon
> Assignee: Christophe Lombart
> Fix For: 1.5
>
>
> In the following 'Article' class, there is are fields set to true for 'path' and 'uuid' jcr properties.
> The mixins for referencing (hence, support for UUID) are declared at the @Node level of the class.
> After saving the node with the ObjectContentManager, the uuid field is not populated as it could be expected
> @Node(jcrMixinTypes="mix:referenceable,mix:lockable,mix:versionable")
> public class Article {
> @Field(uuid=true)
> private String id = null;
>
> @Field(path=true)
> private String path = null;
>
> @Field
> private String content = null;
> ... constructor, getters and setters
> }
> The full discussion is here : http://www.nabble.com/OCM-issues-with-path-and-id-fields-%28annotations%29-tt15460625.html#a15460625
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.