Re: [Wicket-user] attention hibernate users

2005-07-14 Thread Nick Heudecker
You're looking for the Criteria queries.  Check the API and reference guide.

On 7/14/05, Jonathan Carlson [EMAIL PROTECTED] wrote:
 I am a Cayenne user but I'd like some feedback on Hibernate.
 
 Cayenne has a really nice Java interfact to allow dynamic adding of
 qualifiers (WHERE or AND clauses)  and orderings to a basic cayenne
 SelectQuery.
 
 For example: (Finds all users with address with city of New York born
 after today ;-)
 SelectQuery q = new SelectQuery(User.class);
 q.addQualifier(ExpressionFactory.greaterOrEqualExp(dateOfBirth, new
 Date());
 q.addQualifier(ExpressionFactory.matchExp(address.city, New York);
 
 Does Hibernate have anything similar?  I didn't see anything quite like
 this on a quick perusal of their user manual, but I could easily have
 missed it.  Hibernate's query language seems more query language
 (string) driven.
 
 Thanks!
 
 - Jonathan
 
 
 
 __
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 
 Katun Corporation -- www.katun.com
 _
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] attention hibernate users

2005-07-14 Thread Eelco Hillenius
As a side note: one thing that sucks about Hibernate now is the way they 
do their proxying in 3.0 We have had a bunch of problems with it. Most 
notably, you can't have final classes, as Hibernate can't create proxies 
for them. If you do, you get exceptions. Worse, if you have final 
getters and setters, Hibernate can't create proxy methods for them. But 
Hibernate won't tell you! It took us (Maurice and I) many hours to 
finally discover this.


Just wanted to say that other frameworks like Cayenne and JDO (it's a 
spec, okay) can still be viable alternatives.


Eelco


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] attention hibernate users

2005-07-14 Thread Phil Kulak
And that wasn't a problem with  3.0? Hibernate has always used CGLib
for proxying, and CGLib can't proxy anything final. I use field
access, though. That way you don't have to worry about any of that
because Hibernate will do bytecode manipulation. I've heard nice
things about JDO, but I've been using the EJB3 annotations lately, and
I think that's where it's at. Very nice.

On 7/14/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 As a side note: one thing that sucks about Hibernate now is the way they
 do their proxying in 3.0 We have had a bunch of problems with it. Most
 notably, you can't have final classes, as Hibernate can't create proxies
 for them. If you do, you get exceptions. Worse, if you have final
 getters and setters, Hibernate can't create proxy methods for them. But
 Hibernate won't tell you! It took us (Maurice and I) many hours to
 finally discover this.
 
 Just wanted to say that other frameworks like Cayenne and JDO (it's a
 spec, okay) can still be viable alternatives.
 
 Eelco
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] attention hibernate users

2005-07-14 Thread Nick Heudecker
Proxies and lazy collections became the default in 3.0.  

On 7/14/05, Phil Kulak [EMAIL PROTECTED] wrote:
 And that wasn't a problem with  3.0? Hibernate has always used CGLib
 for proxying, and CGLib can't proxy anything final. I use field
 access, though. That way you don't have to worry about any of that
 because Hibernate will do bytecode manipulation. I've heard nice
 things about JDO, but I've been using the EJB3 annotations lately, and
 I think that's where it's at. Very nice.
 
 On 7/14/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
  As a side note: one thing that sucks about Hibernate now is the way they
  do their proxying in 3.0 We have had a bunch of problems with it. Most
  notably, you can't have final classes, as Hibernate can't create proxies
  for them. If you do, you get exceptions. Worse, if you have final
  getters and setters, Hibernate can't create proxy methods for them. But
  Hibernate won't tell you! It took us (Maurice and I) many hours to
  finally discover this.
 
  Just wanted to say that other frameworks like Cayenne and JDO (it's a
  spec, okay) can still be viable alternatives.
 
  Eelco
 
 
  ---
  SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
  from IBM. Find simple to follow Roadmaps, straightforward articles,
  informative Webcasts and more! Get everything you need to get up to
  speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opclick
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] attention hibernate users

2005-07-14 Thread Eelco Hillenius
Yep, you're right. I actually never ran into the problems in 2.1. 
Probably didn't use final. The proxy generation has changed though 
(don't ask me the details), and we had problems with 3.0 we didn't have 
in 2.1. Pretty sure it was the 2.1 - 3.0 difference, as we upgraded in 
the midst of a project and ran into a bunch of problems then.


Phil Kulak wrote:


And that wasn't a problem with  3.0? Hibernate has always used CGLib
for proxying, and CGLib can't proxy anything final. I use field
access, though. That way you don't have to worry about any of that
because Hibernate will do bytecode manipulation. I've heard nice
things about JDO, but I've been using the EJB3 annotations lately, and
I think that's where it's at. Very nice.
 



Yeah, I dig the annotations too. I'd like to go EJB 3 (undependent of 
Hibernate) as soon as I can.


Eelco


On 7/14/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 


As a side note: one thing that sucks about Hibernate now is the way they
do their proxying in 3.0 We have had a bunch of problems with it. Most
notably, you can't have final classes, as Hibernate can't create proxies
for them. If you do, you get exceptions. Worse, if you have final
getters and setters, Hibernate can't create proxy methods for them. But
Hibernate won't tell you! It took us (Maurice and I) many hours to
finally discover this.

Just wanted to say that other frameworks like Cayenne and JDO (it's a
spec, okay) can still be viable alternatives.

Eelco


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] attention hibernate users

2005-07-14 Thread Eelco Hillenius

Ah, that could be the explanation. Didn't know that.

Eelco

Nick Heudecker wrote:

Proxies and lazy collections became the default in 3.0.  

 





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] attention hibernate users

2005-07-14 Thread Eelco Hillenius

Ok, ok, I admit. Typical case of RTFM :)

Eelco

Eelco Hillenius wrote:


Ah, that could be the explanation. Didn't know that.

Eelco

Nick Heudecker wrote:

Proxies and lazy collections became the default in 3.0. 
 







---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] attention hibernate users

2005-07-14 Thread Nick Heudecker
That's okay.  I just finished a book on Hibernate so I had to learn
the details.

With the EntityManager coming in 3.1, you should be able to abstract
Hibernate out of the picture even more.


On 7/14/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Ok, ok, I admit. Typical case of RTFM :)
 
 Eelco
 
 Eelco Hillenius wrote:
 
  Ah, that could be the explanation. Didn't know that.
 
  Eelco
 
  Nick Heudecker wrote:
 
  Proxies and lazy collections became the default in 3.0.
 
 
 
 
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user