Nick,
bear in mimd that one field can map to more than one column in the database,
e.g. with compound identities. In this case, you are being asked to provide the
column names separated by spaces. This could be the reason why you are
experiencing problems.
In any case, a little JUnit test case to replay your roblems would be
appreciated ... ;-).
Regards
Werner
-----Urspr�ngliche Nachricht-----
Von: Nick Stuart [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 23. Februar 2005 16:07
An: [email protected]
Betreff: [castor-user] SQL Fields with spaces.
Seem to have run accross a problem. Due to legacy info and improper
forsight, I'm kinda stuck with field names in my database that have
spaces in them. Not a problem as the database (mysql) handles this
quite fine. Castor, however doesnt seem to like it. Looking at the
Sql.java generated class it seems the the name field is a vector. May
I ask why? It seems to be breaking the name up according to spaces. So
if my field was 'Project Name' castor tries to insert it as 'Project'.
Is there a reason why we need the field to be a vector? or should we
be able to change it to a string.
Will also open a bug if this isn't intended and should be changed.
-Nick
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user