You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Patrick Saunders <ps...@comcen.com.au> on 2002/01/03 04:19:50 UTC

Anyone tried JRF?

On the topic of Castor v Torque , has anyone else
tried jRF (java Relational Framework) ? 
 (I am aware of at least 1 jRF guru on the forum!)

I am using it quite successfully and would recommend it.
One thing I do like about jRF is that is has a neat way
of doing joins. Instead of having to hack your SQL, it has
a concept of nested objects, 
Eg instead of writing a conventinal SQL join, where each tuple maps to 
a 'StudentTest'  Object , instead each Student object has a list
of Test objects, which can be accessed like:
  #foreach($s in $studentList)
      Student is $s.getStudentname
          #foreach($t in $s.FindForTests()
               Scored: $t.getScore() for test $t.getTestName() 
          #end
  #end

This is how I use it. The trickiest thing was setting up the 
connection pool; that was  a bit of a hack using Turbine service
but it works fine. Go to the web site if you want to read
more http://jrf.sourceforge.net

I would recommend it as a comparable alternative to Torque.

pat.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Anyone tried JRF?

Posted by Ian Lim <ma...@ematic.com>.
Hi

Thanks for the features comparison provided.
I have updated my website to put in JRF side-by-side with Castor and Torque.
Just a few points to clarify:
1) Does JRF has some way to generate SQL?
2) Do you have the link to Univ of Indiana's website regarding their source
code generator ?
3) In order to make JRF J2EE compatible, anything else require?
For example, Castor JDO needs a JMX bean or a connector architecture
to tie it to the app server.

Regards
==========
Ian Lim
email: mallim_sg@yahoo.com.sg
homepage: http://www.webappcabaret.com/mallim

----- Original Message -----
From: "Jonathan Carlson" <jo...@yahoo.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Saturday, January 05, 2002 04:32 AM
Subject: Re: Anyone tried JRF?


> Ian, I hope I understood your questions correctly.
>
> OpenSource = Yes
> Connection Pooling = Yes
> Template Based Source Code Generation = No, but can generate source
> using an existing database.  Univ of Indiana is creating an XML-driven
> source code generator that they will open-source.
> Template Based SQL Statement Generation = No, it doesn't use templates
> to generate SQL
> Multiple Column Primary Key = Yes
> Key Generators = Yes, but db specific
> J2EE scalability = Yes, via Stateless Session Beans, not recommended to
> use for Entity Beans, but it could probably be done.  Entity Beans don't
> scale well anyways.
> Lazy Loading = Yes, because most relationships are manually coded
> Caching = No
>
> Jonathan
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Anyone tried JRF?

Posted by Jonathan Carlson <jo...@yahoo.com>.
Ian, I hope I understood your questions correctly.

OpenSource = Yes
Connection Pooling = Yes
Template Based Source Code Generation = No, but can generate source 
using an existing database.  Univ of Indiana is creating an XML-driven 
source code generator that they will open-source.
Template Based SQL Statement Generation = No, it doesn't use templates 
to generate SQL
Multiple Column Primary Key = Yes
Key Generators = Yes, but db specific
J2EE scalability = Yes, via Stateless Session Beans, not recommended to 
use for Entity Beans, but it could probably be done.  Entity Beans don't 
scale well anyways.
Lazy Loading = Yes, because most relationships are manually coded
Caching = No

Jonathan


Ian Lim wrote:

>Hi
>
>If you could give me a list of yes/no against the criteria,
>or any other extra criteria. I am willing to update accordingly :).
>
>If not, I have to download it and try out to see whether it
>could fit the criterias listed which will take me a bit more time.
>
>Glad to hear about the code-generation part.
>
>I went to the website and see the examples where the part that
>should be code generated are hardcoded, already no mood
>to go further :P
>
>Regards
>==========
>Ian Lim
>email: mallim_sg@yahoo.com.sg
>homepage: http://www.webappcabaret.com/mallim
>
>----- Original Message ----- 
>From: "Jonathan Carlson" <jo...@yahoo.com>
>To: "Turbine Users List" <tu...@jakarta.apache.org>
>Sent: Friday, January 04, 2002 10:50 PM
>Subject: Re: Anyone tried JRF?
>
>
>>FYI - Version 2 of jRF will have some important speed improvements. 
>> PreparedStatements and code-generation of setter/getter calls instead 
>>of reflection.  
>>
>>Jonathan Carlson
>>joncrlsn@users.sf.net
>>
>>Ian Lim wrote:
>>
>>>Hi
>>>
>>>I have come out a comparison chart between Castor JDO and Torque
>>>at the URL below:
>>>http://www.webappcabaret.com/mallim/main/template/omcompare.vm
>>>
>>>The response time to my web server is a bit slow ...
>>>
>>>If someone could give me something similar to jRF and perhaps others,
>>>I would update accordingly to compare the differences between
>>>the different open-source object relational library available.
>>>
>>>If there are other criteria which I have missed out,
>>>feel free to tell me on it.
>>>
>>>As for performance, anybody got any comments on a good way to measure
>>>the performance across different object relational libraries ?
>>>
>>>Regards
>>>==========
>>>Ian Lim
>>>email: mallim_sg@yahoo.com.sg
>>>homepage: http://www.webappcabaret.com/mallim
>>>
>
>



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Anyone tried JRF?

Posted by Ian Lim <ma...@ematic.com>.
Hi

If you could give me a list of yes/no against the criteria,
or any other extra criteria. I am willing to update accordingly :).

If not, I have to download it and try out to see whether it
could fit the criterias listed which will take me a bit more time.

Glad to hear about the code-generation part.

I went to the website and see the examples where the part that
should be code generated are hardcoded, already no mood
to go further :P

Regards
==========
Ian Lim
email: mallim_sg@yahoo.com.sg
homepage: http://www.webappcabaret.com/mallim

----- Original Message ----- 
From: "Jonathan Carlson" <jo...@yahoo.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Friday, January 04, 2002 10:50 PM
Subject: Re: Anyone tried JRF?


> FYI - Version 2 of jRF will have some important speed improvements. 
>  PreparedStatements and code-generation of setter/getter calls instead 
> of reflection.  
> 
> Jonathan Carlson
> joncrlsn@users.sf.net
> 
> Ian Lim wrote:
> 
> >Hi
> >
> >I have come out a comparison chart between Castor JDO and Torque
> >at the URL below:
> >http://www.webappcabaret.com/mallim/main/template/omcompare.vm
> >
> >The response time to my web server is a bit slow ...
> >
> >If someone could give me something similar to jRF and perhaps others,
> >I would update accordingly to compare the differences between
> >the different open-source object relational library available.
> >
> >If there are other criteria which I have missed out,
> >feel free to tell me on it.
> >
> >As for performance, anybody got any comments on a good way to measure
> >the performance across different object relational libraries ?
> >
> >Regards
> >==========
> >Ian Lim
> >email: mallim_sg@yahoo.com.sg
> >homepage: http://www.webappcabaret.com/mallim
> >



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Anyone tried JRF?

Posted by Jonathan Carlson <jo...@yahoo.com>.
FYI - Version 2 of jRF will have some important speed improvements. 
 PreparedStatements and code-generation of setter/getter calls instead 
of reflection.  

Jonathan Carlson
joncrlsn@users.sf.net

Ian Lim wrote:

>Hi
>
>I have come out a comparison chart between Castor JDO and Torque
>at the URL below:
>http://www.webappcabaret.com/mallim/main/template/omcompare.vm
>
>The response time to my web server is a bit slow ...
>
>If someone could give me something similar to jRF and perhaps others,
>I would update accordingly to compare the differences between
>the different open-source object relational library available.
>
>If there are other criteria which I have missed out,
>feel free to tell me on it.
>
>As for performance, anybody got any comments on a good way to measure
>the performance across different object relational libraries ?
>
>Regards
>==========
>Ian Lim
>email: mallim_sg@yahoo.com.sg
>homepage: http://www.webappcabaret.com/mallim
>
>----- Original Message -----
>From: "Patrick Saunders" <ps...@comcen.com.au>
>To: "Turbine Users List" <tu...@jakarta.apache.org>
>Sent: Thursday, January 03, 2002 11:19 AM
>Subject: Anyone tried JRF?
>
>
>>On the topic of Castor v Torque , has anyone else
>>tried jRF (java Relational Framework) ?
>> (I am aware of at least 1 jRF guru on the forum!)
>>
>>I am using it quite successfully and would recommend it.
>>One thing I do like about jRF is that is has a neat way
>>of doing joins. Instead of having to hack your SQL, it has
>>a concept of nested objects,
>>Eg instead of writing a conventinal SQL join, where each tuple maps to
>>a 'StudentTest'  Object , instead each Student object has a list
>>of Test objects, which can be accessed like:
>>  #foreach($s in $studentList)
>>      Student is $s.getStudentname
>>          #foreach($t in $s.FindForTests()
>>               Scored: $t.getScore() for test $t.getTestName()
>>          #end
>>  #end
>>
>>This is how I use it. The trickiest thing was setting up the
>>connection pool; that was  a bit of a hack using Turbine service
>>but it works fine. Go to the web site if you want to read
>>more http://jrf.sourceforge.net
>>
>>I would recommend it as a comparable alternative to Torque.
>>
>>pat.
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
><ma...@jakarta.apache.org>
>
>>For additional commands, e-mail:
>>
><ma...@jakarta.apache.org>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Anyone tried JRF?

Posted by Ian Lim <ma...@yahoo.com.sg>.
Hi

I have come out a comparison chart between Castor JDO and Torque
at the URL below:
http://www.webappcabaret.com/mallim/main/template/omcompare.vm

The response time to my web server is a bit slow ...

If someone could give me something similar to jRF and perhaps others,
I would update accordingly to compare the differences between
the different open-source object relational library available.

If there are other criteria which I have missed out,
feel free to tell me on it.

As for performance, anybody got any comments on a good way to measure
the performance across different object relational libraries ?

Regards
==========
Ian Lim
email: mallim_sg@yahoo.com.sg
homepage: http://www.webappcabaret.com/mallim

----- Original Message -----
From: "Patrick Saunders" <ps...@comcen.com.au>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Thursday, January 03, 2002 11:19 AM
Subject: Anyone tried JRF?


> On the topic of Castor v Torque , has anyone else
> tried jRF (java Relational Framework) ?
>  (I am aware of at least 1 jRF guru on the forum!)
>
> I am using it quite successfully and would recommend it.
> One thing I do like about jRF is that is has a neat way
> of doing joins. Instead of having to hack your SQL, it has
> a concept of nested objects,
> Eg instead of writing a conventinal SQL join, where each tuple maps to
> a 'StudentTest'  Object , instead each Student object has a list
> of Test objects, which can be accessed like:
>   #foreach($s in $studentList)
>       Student is $s.getStudentname
>           #foreach($t in $s.FindForTests()
>                Scored: $t.getScore() for test $t.getTestName()
>           #end
>   #end
>
> This is how I use it. The trickiest thing was setting up the
> connection pool; that was  a bit of a hack using Turbine service
> but it works fine. Go to the web site if you want to read
> more http://jrf.sourceforge.net
>
> I would recommend it as a comparable alternative to Torque.
>
> pat.
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>