Problem with sql-2 join???
piascikj Apr 8, 2011 1:23 PMI'm using modeshape 2.4.0.Final. In an open source project called fincayra
The following query is giving me an error.
SELECT post."jcr:uuid", post."text", post."user" FROM [fincayra.Post] AS post JOIN [fincayra.User] AS u ON post."user"=u."jcr:uuid"
The error is,
javax.jcr.RepositoryException: Column 'user' does not exist on the table '__ALLNODES__'
Any Ideas???
This is a dump of the nodes that should be at play in this query:
/Objects/User
/Objects/User/jcr:primaryType = fincayra.User
/Objects/User/email = test1@innobuilt.com
/Objects/User/name = test1
/Objects/User/active = true
/Objects/User/jcr:uuid = 01660505-c760-4ee7-884e-f91eb84aae27
/Objects/User/jcr:mixinTypes = mix:referenceable
/Objects/User/jcr:mixinTypes = mix:lockable
/Objects/User/password = mEjfEqZ5/DDqlshdaxkUY95ARBBMuqXqcxN0Z9kDa5Sljo7TEMS+46IxjPgFwhwb
/Objects/User[2]
/Objects/User[2]/jcr:primaryType = fincayra.User
/Objects/User[2]/email = test2@innobuilt.com
/Objects/User[2]/name = test2
/Objects/User[2]/active = true
/Objects/User[2]/jcr:uuid = fda0c97c-ddee-464c-813b-0091ad63b59f
/Objects/User[2]/jcr:mixinTypes = mix:referenceable
/Objects/User[2]/jcr:mixinTypes = mix:lockable
/Objects/User[2]/password = iAGoD6olBRoQF+yC+3QMAsHrxNNM3kMv1jYPcfzH9Ltu1xf6QqZ2Y2KN5Qm0ZU0Z
/Objects/User[3]
/Objects/User[3]/jcr:primaryType = fincayra.User
/Objects/User[3]/email = test3@innobuilt.com
/Objects/User[3]/name = test3
/Objects/User[3]/active = true
/Objects/User[3]/jcr:uuid = 1b7aed8d-1709-4856-b557-06bc4b99ef8f
/Objects/User[3]/jcr:mixinTypes = mix:referenceable
/Objects/User[3]/jcr:mixinTypes = mix:lockable
/Objects/User[3]/password = Wq0l1zXZWkEOw4OkB8oi2sFHQWx811uxuO4tZ+ZqvWf1DDWeSPYa2QxBTQRotaEl
/Objects/Post
/Objects/Post/text = My first Post
/Objects/Post/jcr:primaryType = fincayra.Post
/Objects/Post/jcr:uuid = 4f974667-e260-43cd-9f9d-d9494ac9b71f
/Objects/Post/jcr:mixinTypes = mix:referenceable
/Objects/Post/jcr:mixinTypes = mix:lockable
/Objects/Post/user = 1b7aed8d-1709-4856-b557-06bc4b99ef8f
/Objects/Post[2]
/Objects/Post[2]/text = My second Post
/Objects/Post[2]/jcr:primaryType = fincayra.Post
/Objects/Post[2]/jcr:uuid = 45fa3036-11b5-40d2-90c9-9929f48931c2
/Objects/Post[2]/jcr:mixinTypes = mix:referenceable
/Objects/Post[2]/jcr:mixinTypes = mix:lockable
/Objects/Post[2]/user = 1b7aed8d-1709-4856-b557-06bc4b99ef8f
/Objects/Post[3]
/Objects/Post[3]/text = My third Post
/Objects/Post[3]/jcr:primaryType = fincayra.Post
/Objects/Post[3]/jcr:uuid = b68a41af-d5e2-4d2b-b072-d2a5386e39ee
/Objects/Post[3]/jcr:mixinTypes = mix:referenceable
/Objects/Post[3]/jcr:mixinTypes = mix:lockable
/Objects/Post[3]/user = 1b7aed8d-1709-4856-b557-06bc4b99ef8f
/Objects/Post[4]
/Objects/Post[4]/text = My first Post
/Objects/Post[4]/jcr:primaryType = fincayra.Post
/Objects/Post[4]/jcr:uuid = ac058371-9c4f-4913-a3cd-f496238b879a
/Objects/Post[4]/jcr:mixinTypes = mix:referenceable
/Objects/Post[4]/jcr:mixinTypes = mix:lockable
/Objects/Post[4]/user = 01660505-c760-4ee7-884e-f91eb84aae27
/Objects/Post[5]
/Objects/Post[5]/text = My second Post
/Objects/Post[5]/jcr:primaryType = fincayra.Post
/Objects/Post[5]/jcr:uuid = e1a94209-675c-48c8-9e02-e4b9912a981b
/Objects/Post[5]/jcr:mixinTypes = mix:referenceable
/Objects/Post[5]/jcr:mixinTypes = mix:lockable
/Objects/Post[5]/user = 01660505-c760-4ee7-884e-f91eb84aae27
/Objects/Post[6]
/Objects/Post[6]/text = My third Post
/Objects/Post[6]/jcr:primaryType = fincayra.Post
/Objects/Post[6]/jcr:uuid = ddf7279a-81c9-4c07-b420-f22275eeba37
/Objects/Post[6]/jcr:mixinTypes = mix:referenceable
/Objects/Post[6]/jcr:mixinTypes = mix:lockable
/Objects/Post[6]/user = 01660505-c760-4ee7-884e-f91eb84aae27