Search:

Type: Posts; User: gareth; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    1,655

    Sorry should have clarified. This is the query...

    Sorry should have clarified. This is the query for oracle only, you won't be able to get a cross-platform sql statement as the ANSI join syntax was only added to Oracle from version 9.
  2. Replies
    7
    Views
    1,655

    The SQL query for Oracle is: SELECT...

    The SQL query for Oracle is:


    SELECT CHILD.id, CHILD.object_identity, CHILD.acl_class, PARENT.object_identity as PARENT_OBJECT_IDENTITY FROM acl_object_identity CHILD, acl_object_identity PARENT...
  3. Replies
    20
    Views
    19,324

    If you knew there existed at least one B for each...

    If you knew there existed at least one B for each A then you could retrieve the entire graph with one query.


    from B b join fetch b.a join fetch b.c

    You are only allowed to eagerly fetch one...
Results 1 to 3 of 3