Hi, This is not so well documented, so it's easy to make mistakes. The main idea is that you use either the Query property, or the Class+Id+Value properties. Second, XWiki Class Name is not a java or hibernate class name, but the name of a class defined in the wiki, like XWiki.ArticleClass or XWiki.XWikiUsers. So, if you want to list all the documents, you can write in the Query field this: select doc.fullName from XWikiDocument doc and leave the Class/Id/Value fields empty. Sergiu On 11/25/07, Jan Kodera <[email protected]> wrote:
Hi All, i want use database list class as property in my class. I tried hibernate query to fill in values of property. After this, the select box was empty. I think there is no problem in query (Select doc from XWikiDocument as doc) and I filled in value (doc.name) and id (doc.id) and also i filled in which class should hibernate use. (XWikiDocument). I dont know, what I am doing wrong. Is there some tutorial for this? There is values which i filled in Display type : select Relational Storage: yes Use Picker: yes Size : 1 Sort: value Hibernate Query:select doc from XWikiDocument as doc XWiki Class Name: XWikiDocument Id Field Name: doc.name Value Field Name: doc.name
Thank you.