jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From philip andrew <philip14...@gmail.com>
Subject OCM queries do not respect node order? (orderable)
Date Mon, 01 Feb 2010 14:17:55 GMT

I am using the Object Content Manager and ordered nodes, but the results
from the OCM query are not in the same order as the Node query.
What type of query is supposed to give them back in the right order ? It
seems the OCM query does not.


I registered a node type

  private void registerCmsNodeType(Session session) throws
RepositoryException, IOException {
    JackrabbitNodeTypeManager manager = (JackrabbitNodeTypeManager)
    // Register the custom node types defined in the CND file
    InputStream is = new ByteArrayInputStream((
"<nt = 'http://www.jcp.org/jcr/nt/1.0'>" +
"[" + Constants.ORSA_CMS_NODE_TYPE + "] > nt:unstructured
    manager.registerNodeTypes(is, JackrabbitNodeTypeManager.TEXT_X_JCR_CND);


My node.

@Node{val jcrType="nt:orsacms_page"}
class OPageNode extends OAbstractNode
  // Path in the JCR, this seems to be not working?
  @Field{val path = true} var path:String = _

Thanks, Philip

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message