On 7/23/07, James Law <[EMAIL PROTECTED]> wrote:
>
> Hi Matthias, my 2 cents on orm.
> As far as which orm/persistence tool, I think a good strategy that I
> follow is to use them all!
> Really though, I categorize data access into multiple categories
>
> 1. Lots of insert/update stuff use cases, where you want to modify a
> domain model, put bus logic on domain objects, and not think in terms of
> rows, but instead modify an object model and let hibernate "see" your
> changes --- use hibernate
>
> 2. Get queries on the screen fast (no need for persistence context, or
> changes to the objects)
> think ibatis, or spring jdbc.
>
> I love hibernate, but for complex queries, I think it at times can
> require too much understanding of the black box. Like "how are my
> many-one setup, is it cached, outer joined, or ?".
>
> I accomplish this matrix approach using spring.. since it allows me to
> use both and still have transactions, and one stop shopping for managing
> datasource with all of these tools...


I agree.  Here at my current job, we're doing a mix of both approaches where
we have a number of domain objects managed by Spring/Hibernate/JPA but then
we have a number of dynamically generated queries that don't really equate
to domain objects.  For those we're using straight SQL to (hopefully)
quickly pull that data out of the database.  If you want to use hibernate
and wicket, there's the databinder which has a number of nice
Hibernate-related components to use to help manage your models and the like
and there's qwicket that'll help you generate the base spring/wicket setup
for you if you choose to use spring.

If you go with hibernate, I'd recommend sticking as close to "pure" JPA as
you can so that you're not necessarily tied to hibernate but get the
benefits of an ORM.  You can still drop to native SQL if you'd like using
the JPA interfaces.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to