Re: [xwiki-users] xwiki mssql

2008-12-18 Thread Sergiu Dumitriu
hel-o wrote:
 Hi,
 
 XWiki and mssql doesn't seem to work. I found an hibernate file for mssql in
 1.7 (seems to be there by default since 1.5.? (not 1.5 but 1.5.2 didn't look
 at 1.5.1)). But i can't get the system running (MSSQL Server 2000, jtds
 Driver 1.2.1).
 

The change is that a new field for XWikiDocument was added, hidden.
You should search for the mapping for that field in the default (hsql)
mapping file, and copy it in your mssql file.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki mssql

2008-12-18 Thread hel-o

Hi,

the included xwiki.mssql.hbm.xml does not work. I found some problems and
changed it and got a running XEM 1.7 installation but im not a mssql expert
so im concerned about one thing:

In the original file there is:

class name=com.xpn.xwiki.doc.DeletedAttachment
table=xwikiattrecyclebin mutable=false
...
property name=xml type=text 
column name=XDA_XML sql-type=varchar(max) 
not-null=true /
/property
...

that doesn't work - throws an exeption.

I changed it to:

class name=com.xpn.xwiki.doc.DeletedAttachment
table=xwikiattrecyclebin mutable=false
...
property name=xml type=text 
column name=XDA_XML not-null=true 
length=10/
/property
...

and it works but i don't know if this could have negative consequences.

hel.



Sergiu Dumitriu-2 wrote:
 
 
 The change is that a new field for XWikiDocument was added, hidden.
 You should search for the mapping for that field in the default (hsql)
 mapping file, and copy it in your mssql file.
 
 

-- 
View this message in context: 
http://n2.nabble.com/xwiki-mssql-tp1672414p1672853.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki mssql

2008-12-18 Thread Jean-Vincent Drean
Could you please attach your working mapping file to this issue :
http://jira.xwiki.org/jira/browse/XWIKI-3017 ?

Thanks,
JV.

On Thu, Dec 18, 2008 at 2:10 PM, hel-o h...@hel.at wrote:

 Hi,

 the included xwiki.mssql.hbm.xml does not work. I found some problems and
 changed it and got a running XEM 1.7 installation but im not a mssql expert
 so im concerned about one thing:

 In the original file there is:

class name=com.xpn.xwiki.doc.DeletedAttachment
 table=xwikiattrecyclebin mutable=false
 ...
property name=xml type=text 
column name=XDA_XML sql-type=varchar(max) 
 not-null=true /
/property
 ...

 that doesn't work - throws an exeption.

 I changed it to:

class name=com.xpn.xwiki.doc.DeletedAttachment
 table=xwikiattrecyclebin mutable=false
 ...
property name=xml type=text 
column name=XDA_XML not-null=true 
 length=10/
/property
 ...

 and it works but i don't know if this could have negative consequences.

 hel.



 Sergiu Dumitriu-2 wrote:


 The change is that a new field for XWikiDocument was added, hidden.
 You should search for the mapping for that field in the default (hsql)
 mapping file, and copy it in your mssql file.



 --
 View this message in context: 
 http://n2.nabble.com/xwiki-mssql-tp1672414p1672853.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users