Armin Waibel wrote:

Kirill Petrov wrote:

Armin Waibel wrote:

I have a class that has a property which is a Vector of Strings. I looked through the mail archive and learned that OJB at some point did not support that.




did you read these sections in docs? Maybe this can help you.

http://db.apache.org/ojb/docu/guides/jdbc-types.html#Type+and+Value+Conversions+-+The+


OJB is shipped with a StringVector2VarcharFieldConversion, maybe this is useful for you.
All conversions can be found here
http://cvs.apache.org/viewcvs.cgi/db-ojb/src/java/org/apache/ojb/broker/accesslayer/conversions/?only_with_tag=OJB_1_0_RELEASE



Another feature is here
http://db.apache.org/ojb/docu/guides/advanced-technique.html#Nested+Objects





So, nothing has changed since then. There is no clean solution as in Hibernate, right?



What's the "clean" solution? How do you want to map the Vector of Strings?

If all the strings are put together in one field (as in StringVector2VarcharFieldConversion) then we won't be able to run queries against this field efficiently.
I suppose strings need to be mapped in a varchar column of a table.


Kirill

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to