You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Kirill Petrov <KP...@uci.edu> on 2005/04/14 01:39:53 UTC
multiple primitives
Hello everybody,
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. It was proposed to use a wrapper class instead of a
primitive. What is the situation now? Can we map multiple primitives
using OKB without wrappers?
Kirill
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: multiple primitives
Posted by Armin Waibel <ar...@apache.org>.
Kirill Petrov wrote:
>>
>> 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.
>
ok, now it's clear. We started work on next major version of OJB, please
make a detailed feature request on jira
http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10700
think it should be possible to include this in next major version.
regards,
Armin
> Kirill
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: multiple primitives
Posted by Kirill Petrov <KP...@uci.edu>.
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: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: multiple primitives
Posted by Armin Waibel <ar...@apache.org>.
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?
Armin
> Kirill
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: multiple primitives
Posted by Kirill Petrov <KP...@uci.edu>.
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?
Kirill
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: multiple primitives
Posted by Armin Waibel <ar...@apache.org>.
Hi Kirill,
Kirill Petrov wrote:
> Hello everybody,
>
> 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
regards,
Armin
> It was proposed to use a wrapper class instead of a
> primitive. What is the situation now? Can we map multiple primitives
> using OKB without wrappers?
>
> Kirill
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org