« Return to Thread: Configuring JPA with Rife

Re: Configuring JPA with Rife

by Geert Bevin :: Rate this Message:

Reply to Author | View in Thread


With RIFE it's based on naming convention, the tables correspond to  
the names of your bean classes.

On 31 Mar 2009, at 09:31, Rahul wrote:

>
> Is there a way to define mapping between the tables in Rife, as we do
> in hibernate or JPA for that matter.
> In hibernate i used hbm configuration files and with JPA i used
> annotations to define it.
> How can i do it with rife?
>
> On Mar 31, 11:47 am, Geert Bevin <gbe...@...> wrote:
>> Yes, you can search the mailinglist if you need more information and
>> there's some docs in the wiki about this too.
>>
>> Best regards,
>>
>> Geert
>>
>> On 31 Mar 2009, at 08:37, Rahul wrote:
>>
>>
>>
>>
>>
>>> No, I havnt written any class ParticipantPersistence, do I need to
>>> write it, if yes then do i need to implement the interface  
>>> Participant
>>> and
>>> define those methods of that interface?
>>
>>> On Mar 31, 11:30 am, Geert Bevin <gbe...@...> wrote:
>>>> Did you write your own ParticipantPersistence class? You need to  
>>>> use
>>>> the package name also then. If you don't specify a package name,  
>>>> RIFE
>>>> assumes it's one of the standard participants in
>>>> com.uwyn.rife.rep.participants.
>>
>>>> Best regards,
>>
>>>> Geert
>>
>>>> On 31 Mar 2009, at 08:28, Rahul wrote:
>>
>>>>> I am trying to configure JPA for my rife application.
>>>>> I have a file persistence.xml containing configuration
>>>>> for persistence. But i am not able to initialize this file.
>>>>> I am trying to add this as a new participant in my  
>>>>> participants.xml
>>>>> file
>>>>> like this
>>>>> <participant param="rep/persistence.xml">ParticipantPersistence</
>>>>> participant>
>>
>>>>> it gives me error
>>
>>>>> SEVERE: Exception starting filter RIFE
>>>>> com.uwyn.rife.rep.exceptions.ParticipantNotFoundException: The
>>>>> participant 'ParticipantPersistence' couldn't be found.
>>
>>>>> Can anyone tell me how can i inject this file to my rife
>>>>> application.
>>
>>>>> On Mar 31, 11:00 am, Geert Bevin <gbe...@...> wrote:
>>>>>> Hi, you can use JPA alongside RIFE as you would in any Java
>>>>>> application. However, to benefit from the DB goodies of RIFE and
>>>>>> the
>>>>>> rest of the stack that's built with those in mind, you need to  
>>>>>> use
>>>>>> RIFE's persistence library. Nothing prevents you from using  
>>>>>> both at
>>>>>> the same time though, you can use the same datasources.
>>
>>>>>> HTH,
>>
>>>>>> Geert
>>
>>>>>> On 31 Mar 2009, at 07:23, Rahul wrote:
>>
>>>>>>> Hi, I am new to Rife... I am trying to configure JPA for my rife
>>>>>>> project.. not sure about how to
>>>>>>> go about it. Can anyone help me out regarding the same with any
>>>>>>> sort
>>>>>>> of sample code regarding
>>>>>>> the same.
>>>>>>> Any help woyld be highly appreciated.
>>
>>>>>> --
>>>>>> Geert Bevin
>>>>>> Terracotta -http://www.terracotta.org
>>>>>> Uwyn "Use what you need" -http://uwyn.com
>>>>>> RIFE Java application framework -http://rifers.org
>>>>>> Flytecase Band -http://flytecase.be
>>>>>> Music and words -http://gbevin.com
>>
>>>> --
>>>> Geert Bevin
>>>> Terracotta -http://www.terracotta.org
>>>> Uwyn "Use what you need" -http://uwyn.com
>>>> RIFE Java application framework -http://rifers.org
>>>> Flytecase Band -http://flytecase.be
>>>> Music and words -http://gbevin.com
>>
>> --
>> Geert Bevin
>> Terracotta -http://www.terracotta.org
>> Uwyn "Use what you need" -http://uwyn.com
>> RIFE Java application framework -http://rifers.org
>> Flytecase Band -http://flytecase.be
>> Music and words -http://gbevin.com
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Configuring JPA with Rife

 
 
 
Google
rifers.org web