Hi, I have a class with a database list property which should give the possibility to make a relation to another document. To achieve this I put following hibernate query string to the property definition: select obj.name from BaseObject as obj where obj.className='MyApp.MyClass' Now when I create a new object I can edit all other fields except the one with the database list. Is there any problem with my hibernate query? Btw, I found the query string in the Demo.RelationalFormDemo class on the xwiki site. Additional question: what it the BaseObject table? Is it changing depending on the context? Thanks Yves
Anyone an idea?? On Sep 20, 2005, at 11:35 PM, Yves Langisch wrote:
Hi,
I have a class with a database list property which should give the possibility to make a relation to another document. To achieve this I put following hibernate query string to the property definition:
select obj.name from BaseObject as obj where obj.className='MyApp.MyClass'
Now when I create a new object I can edit all other fields except the one with the database list. Is there any problem with my hibernate query? Btw, I found the query string in the Demo.RelationalFormDemo class on the xwiki site. Additional question: what it the BaseObject table? Is it changing depending on the context?
Thanks Yves
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
Hi Yves, The query looks ok.. Now the result might depend on what you actually have in your database. Do you have any pages with objects of type MyApp.MyClass ? What exactly is the result you get in you form ? Ludovic Yves Langisch wrote:
Anyone an idea??
On Sep 20, 2005, at 11:35 PM, Yves Langisch wrote:
Hi,
I have a class with a database list property which should give the possibility to make a relation to another document. To achieve this I put following hibernate query string to the property definition:
select obj.name from BaseObject as obj where obj.className='MyApp.MyClass'
Now when I create a new object I can edit all other fields except the one with the database list. Is there any problem with my hibernate query? Btw, I found the query string in the Demo.RelationalFormDemo class on the xwiki site. Additional question: what it the BaseObject table? Is it changing depending on the context?
Thanks Yves
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
Ludovic, I tried it again and now it seems to work. Unfortunately I don't know what I missed the first time ;-) Thanks Yves On 22.09.2005, at 20:02, Ludovic Dubost wrote:
Hi Yves,
The query looks ok.. Now the result might depend on what you actually have in your database. Do you have any pages with objects of type MyApp.MyClass ?
What exactly is the result you get in you form ?
Ludovic
Yves Langisch wrote:
Anyone an idea??
On Sep 20, 2005, at 11:35 PM, Yves Langisch wrote:
Hi,
I have a class with a database list property which should give the possibility to make a relation to another document. To achieve this I put following hibernate query string to the property definition:
select obj.name from BaseObject as obj where obj.className='MyApp.MyClass'
Now when I create a new object I can edit all other fields except the one with the database list. Is there any problem with my hibernate query? Btw, I found the query string in the Demo.RelationalFormDemo class on the xwiki site. Additional question: what it the BaseObject table? Is it changing depending on the context?
Thanks Yves
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http:// www.objectweb.org/wws
--------------------------------------------------------------------- ---
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http:// www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
participants (2)
-
Ludovic Dubost -
Yves Langisch