Thanks for the idea but this didn't work either.  Any other ideas?  I would 
expect the archetype to work correctly.



-----Original Message-----
From: Erik Post [mailto:eriksen...@gmail.com] 
Sent: Tuesday, October 06, 2009 2:09 PM
To: users@wicket.apache.org
Subject: Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, 
Hibernate ... projects

Hi Jeffrey,

I have *absolutely* no idea if this will help you, but I had the same
with Spring. It started working when i put the injection annotation on
the method instead of on the variable.

Good luck,
Erik

On Tue, Oct 6, 2009 at 7:59 PM, Jeffrey Schneller
<jeffrey.schnel...@envisa.com> wrote:
> I took the archetype for Guice, Warp, Hibernate and modified for my
> application.  All my code looks similar to the code from the archetype.
> The only difference is I am not using the AnnotatinConfiguration but
> just the plain Configuration.  I am also using c3po connection pooling
> with Oracle.
>
> However, I am still not able to inject the Hibernate Session into my DAO
> objects.  Any ideas?  I don't see any exceptions being thrown.
>
>       �...@inject
>        Provider<Session> session;
>
>       �...@transactional(type=TransactionType.READ_ONLY)
>        public List<T> findAll() {
>                Criteria criteria =
> session.get().createCriteria(persistentClass);
>                return criteria.list();
>        }
>
>
> The session in the findAll method is always coming back as <null>.
>
> What am I doing wrong?  It doesn't seem to be that difficult to
> implement.
>
>
> Thanks.
>
>
>
> -----Original Message-----
> From: jWeekend [mailto:jweekend_for...@cabouge.com]
> Sent: Tuesday, October 06, 2009 9:48 AM
> To: users@wicket.apache.org
> Subject: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink,
> Hibernate ... projects
>
> We have launched jWeekend's Leg Up page [1].
>
> You can generate a command and run it at your console to create a simple
> project using one of our archetypes. The projects you will generate will
> include enough configuration, code and/or some tests to get you started,
> quickly. Our archetypes currently support various combinations of
> Spring, Guice, WarpPersist, JPA (with one or more implementation from
> EclipseLink, Hibernate, OpenJPA) and Wicket.
>
> Let us know if this is useful and if you'd like to see more
> combinations. Also feel free to raise any issues [2].
>
> Regards - Cemal
> jWeekend
> OO & Java Technologies, Wicket Training and Development
> http://jWeekend.com
>
> [1] http://jweekend.com/dev/LegUp
> [2] http://code.google.com/p/legup/issues/list
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to