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 Kohlweiss Georg <Ge...@oekb.at> on 2004/09/22 12:12:33 UTC
user aliases again
Hello,
Please can anyone tell me the difference between
A)
Criteria crit = new Criteria();
crit.setAlias("a1", "allA");
and
B)
Criteria crit = new Criteria();
UserAlias alias = new UserAlias("a1");
alias.add("allA");
crit.setAlias(alias);
In some cases there is obviously a difference in the generated SQL with OJB 1.0.1
Georg
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: user aliases again
Posted by Jakob Braeuchi <jb...@gmx.ch>.
servus georg,
could you please post the generated sqls.
jakob
Kohlweiss Georg schrieb:
> Hello,
>
> Please can anyone tell me the difference between
>
> A)
> Criteria crit = new Criteria();
> crit.setAlias("a1", "allA");
>
> and
>
> B)
> Criteria crit = new Criteria();
> UserAlias alias = new UserAlias("a1");
> alias.add("allA");
> crit.setAlias(alias);
>
>
> In some cases there is obviously a difference in the generated SQL with OJB 1.0.1
>
>
> Georg
>
>
> ---------------------------------------------------------------------
> 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: database connections...
Posted by Armin Waibel <ar...@apache.org>.
Hi,
Jason Pyeron wrote:
> PersistenceBroker broker;
> //...
> Connection C=broker.serviceConnectionManager().getConnection();
>
> do we close this connection when we are done?
>
Have a look at
http://db.apache.org/ojb/docu/guides/connection.html#Can+I+directly+obtain+a%0A++++++++++++++++
regards,
Armin
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
database connections...
Posted by Jason Pyeron <jp...@pdinc.us>.
PersistenceBroker broker;
//...
Connection C=broker.serviceConnectionManager().getConnection();
do we close this connection when we are done?
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager #1 2739 Saint Paul Street -
- +1 (410) 808-6646 (c) Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately. Any other use of the email by you
is prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org