You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christine Karman <ch...@christine.nl> on 2009/04/02 11:26:40 UTC

Re: [daniel.a.joyce@gmail.com: Hibernate.cfg or persistence.xml?]

> From: daniel joyce <da...@gmail.com>
> To: users@tapestry.apache.org
> X-Virus-Checked: Checked by ClamAV on apache.org
>
> I want to use persistence annotations in my tapestry application, but
> the documentation on the hibernate-tapestry integration is sparse and
> contradictory.
>
> Do I need to use Hibernate.cfg.xml, or can I use a persistence.xml
> with  hibernate as the persistence provider? I see references to
> acquiring a EntityManager, or setting up some kind of automatic
> service in the AppModule, but all the info I've found is sparse at
> best.
>   
I'm not a Hibernate expert, but the Hibernate book explains how to 
switch from using hibernate.cfg.xml to just persistence.xml. I use 
persistence.xml, but it all depends - I guess - on how you want to use 
Hibernate and Java persistence.

dagdag
Christine
> Any better sources out there?
>
> -Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
> ----- End forwarded message -----
>
>   


Re: [daniel.a.joyce@gmail.com: Hibernate.cfg or persistence.xml?]

Posted by daniel joyce <da...@gmail.com>.
how well does this play with the existing Tapestry-Hibernate
integration? Can I still grab the Session easily?

-Daniel

On Thu, Apr 2, 2009 at 2:26 AM, Christine Karman <ch...@christine.nl> wrote:
>
>> From: daniel joyce <da...@gmail.com>
>> To: users@tapestry.apache.org
>> X-Virus-Checked: Checked by ClamAV on apache.org
>>
>> I want to use persistence annotations in my tapestry application, but
>> the documentation on the hibernate-tapestry integration is sparse and
>> contradictory.
>>
>> Do I need to use Hibernate.cfg.xml, or can I use a persistence.xml
>> with  hibernate as the persistence provider? I see references to
>> acquiring a EntityManager, or setting up some kind of automatic
>> service in the AppModule, but all the info I've found is sparse at
>> best.
>>
>
> I'm not a Hibernate expert, but the Hibernate book explains how to switch
> from using hibernate.cfg.xml to just persistence.xml. I use persistence.xml,
> but it all depends - I guess - on how you want to use Hibernate and Java
> persistence.
>
> dagdag
> Christine
>>
>> Any better sources out there?
>>
>> -Daniel
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>> ----- End forwarded message -----
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org