Cayenne and SqlLite, Cayenne 3.0 vs. 2.0

9 messages Options
Embed this post
Permalink
Eric Lazarus

Cayenne and SqlLite, Cayenne 3.0 vs. 2.0

Reply Threaded More More options
Print post
Permalink
Folks

Are people building new systems on Cayenne 3.0 or 2.0, mostly? What is recommended? (We have been deeply back versioned, successfully using 1.1 for many years.)

I am about to release a threat modeling tool as an open source desktop system and I would like to have it save its data to a local, very low maintanane database. I was thinking SqlLite. Is it practical for me to save/retieve my objects to SqlLite via Cayenne? It seems that Sqlite is supported only in 3.0 not in 2.0.6. How stable is the current release 3.0M6?

Is it possible or desireable to add the sqlite package from 3.0 to the 2.0 system?

Is there another database that is so low maintance that I could consider using it as a personal data store for a desktop app that IS well supported by Cayenne in 2.0, if 2.0 is recommended for current development/depolyment?

Thanks!

Eric 



Michael Gentry-2

Re: Cayenne and SqlLite, Cayenne 3.0 vs. 2.0

Reply Threaded More More options
Print post
Permalink
I'm building against 3.0M6 currently.  I'll switch that to the beta
candidate when it comes out.  For my uses, I have no concerns of
deploying with 3.0M6+.

I've never used Cayenne with SQLite.  SQLite is a C-based embeddable
database.  I have no idea how well the JDBC driver/etc for SQLite
work.  Do you need access to your data from a C-based application?  If
you are only using Java, have you considered H2?

http://www.h2database.com/html/main.html

You mentioned Cayenne 2.0 several times.  Is that really a requirement
for you or are you just scared that 3.0 isn't final yet?

mrg


On Fri, Oct 16, 2009 at 5:09 PM, Eric Lazarus <[hidden email]> wrote:

> Folks
>
> Are people building new systems on Cayenne 3.0 or 2.0, mostly? What is recommended? (We have been deeply back versioned, successfully using 1.1 for many years.)
>
> I am about to release a threat modeling tool as an open source desktop system and I would like to have it save its data to a local, very low maintanane database. I was thinking SqlLite. Is it practical for me to save/retieve my objects to SqlLite via Cayenne? It seems that Sqlite is supported only in 3.0 not in 2.0.6. How stable is the current release 3.0M6?
>
> Is it possible or desireable to add the sqlite package from 3.0 to the 2.0 system?
>
> Is there another database that is so low maintance that I could consider using it as a personal data store for a desktop app that IS well supported by Cayenne in 2.0, if 2.0 is recommended for current development/depolyment?
>
> Thanks!
>
> Eric
>
>
>
>
John Armstrong-2

Re: Cayenne and SqlLite, Cayenne 3.0 vs. 2.0

Reply Threaded More More options
Print post
Permalink
In reply to this post by Eric Lazarus
I use Derby for this. Its embedded. Its java. It works exceptionally well.

John-

On Fri, Oct 16, 2009 at 2:09 PM, Eric Lazarus <[hidden email]> wrote:

> Folks
>
> Are people building new systems on Cayenne 3.0 or 2.0, mostly? What is recommended? (We have been deeply back versioned, successfully using 1.1 for many years.)
>
> I am about to release a threat modeling tool as an open source desktop system and I would like to have it save its data to a local, very low maintanane database. I was thinking SqlLite. Is it practical for me to save/retieve my objects to SqlLite via Cayenne? It seems that Sqlite is supported only in 3.0 not in 2.0.6. How stable is the current release 3.0M6?
>
> Is it possible or desireable to add the sqlite package from 3.0 to the 2.0 system?
>
> Is there another database that is so low maintance that I could consider using it as a personal data store for a desktop app that IS well supported by Cayenne in 2.0, if 2.0 is recommended for current development/depolyment?
>
> Thanks!
>
> Eric
>
>
>
>
Mike Kienenberger

Re: Cayenne and SqlLite, Cayenne 3.0 vs. 2.0

Reply Threaded More More options
Print post
Permalink
Yes, I'd recommend H2, Hsqldb, or derby.

I use H2 these days for small projects.  I used to use hsqldb.   Derby
didn't seem to offer any advantage over these when I'd looked at it in
the past, but it's still probably better than a non-java db.

On Fri, Oct 16, 2009 at 5:21 PM, John Armstrong <[hidden email]> wrote:

> I use Derby for this. Its embedded. Its java. It works exceptionally well.
>
> John-
>
> On Fri, Oct 16, 2009 at 2:09 PM, Eric Lazarus <[hidden email]> wrote:
>> Folks
>>
>> Are people building new systems on Cayenne 3.0 or 2.0, mostly? What is recommended? (We have been deeply back versioned, successfully using 1.1 for many years.)
>>
>> I am about to release a threat modeling tool as an open source desktop system and I would like to have it save its data to a local, very low maintanane database. I was thinking SqlLite. Is it practical for me to save/retieve my objects to SqlLite via Cayenne? It seems that Sqlite is supported only in 3.0 not in 2.0.6. How stable is the current release 3.0M6?
>>
>> Is it possible or desireable to add the sqlite package from 3.0 to the 2.0 system?
>>
>> Is there another database that is so low maintance that I could consider using it as a personal data store for a desktop app that IS well supported by Cayenne in 2.0, if 2.0 is recommended for current development/depolyment?
>>
>> Thanks!
>>
>> Eric
>>
>>
>>
>>
>
Eric Lazarus

Re: Cayenne and SqlLite, Cayenne 3.0 vs. 2.0

Reply Threaded More More options
Print post
Permalink
In reply to this post by Eric Lazarus
Thanks for all the help, folks!

So, are people saying we should go with Cayenne 3.x and H2 or Apache Derby as our personal desktop data store? We didn't want to use anything that was unstable or incomplete but it is sounding like 3.x is what is current.

Who is using Apache Derby? Who is using SQLLite? What makes sense for us? Our goals are to get this out RAPIDLY and make it run on everything, install easily and make it easy for folks in the open source world to continue the development. The database must be invisible to the end user with no maintenance headaches.

Mike, why do you feel strongly that we should go with a Java DB?

Thanks again!

Eric


--- On Fri, 10/16/09, Mike Kienenberger <[hidden email]> wrote:

> From: Mike Kienenberger <[hidden email]>
> Subject: Re: Cayenne and SqlLite, Cayenne 3.0 vs. 2.0
> To: [hidden email]
> Date: Friday, October 16, 2009, 5:40 PM
> Yes, I'd recommend H2, Hsqldb, or
> derby.
>
> I use H2 these days for small projects.  I used to use
> hsqldb.   Derby
> didn't seem to offer any advantage over these when I'd
> looked at it in
> the past, but it's still probably better than a non-java
> db.
>
> On Fri, Oct 16, 2009 at 5:21 PM, John Armstrong <[hidden email]>
> wrote:
> > I use Derby for this. Its embedded. Its java. It works
> exceptionally well.
> >
> > John-
> >
> > On Fri, Oct 16, 2009 at 2:09 PM, Eric Lazarus <[hidden email]>
> wrote:
> >> Folks
> >>
> >> Are people building new systems on Cayenne 3.0 or
> 2.0, mostly? What is recommended? (We have been deeply back
> versioned, successfully using 1.1 for many years.)
> >>
> >> I am about to release a threat modeling tool as an
> open source desktop system and I would like to have it save
> its data to a local, very low maintanane database. I was
> thinking SqlLite. Is it practical for me to save/retieve my
> objects to SqlLite via Cayenne? It seems that Sqlite is
> supported only in 3.0 not in 2.0.6. How stable is the
> current release 3.0M6?
> >>
> >> Is it possible or desireable to add the sqlite
> package from 3.0 to the 2.0 system?
> >>
> >> Is there another database that is so low maintance
> that I could consider using it as a personal data store for
> a desktop app that IS well supported by Cayenne in 2.0, if
> 2.0 is recommended for current development/depolyment?
> >>
> >> Thanks!
> >>
> >> Eric
> >>
> >>
> >>
> >>
> >
>



Mike Kienenberger

Re: Cayenne and SqlLite, Cayenne 3.0 vs. 2.0

Reply Threaded More More options
Print post
Permalink
H2 has excellent support as an open source db.   It's called H2
because it's a rewrite of Hsqldb by the original author, as far as I
can tell.

Why go with a java database?  A couple of reasons.

1) You can "install" (or distribute) the db just by adding the jar
file to the project, and specifying an appropriate jdbc url.   No
separate database configuration/installation/maintenance necessary.
Hsqldb will even run entirely in memory with no file system access.
Not as sure about h2.

2) If there's a problem, you're more likely to be able to
debug/identify and fix it as a java programmer, particularly since it
can be a part of your actual application rather than a separate
process.

On Fri, Oct 16, 2009 at 5:47 PM, Eric Lazarus <[hidden email]> wrote:

> Thanks for all the help, folks!
>
> So, are people saying we should go with Cayenne 3.x and H2 or Apache Derby as our personal desktop data store? We didn't want to use anything that was unstable or incomplete but it is sounding like 3.x is what is current.
>
> Who is using Apache Derby? Who is using SQLLite? What makes sense for us? Our goals are to get this out RAPIDLY and make it run on everything, install easily and make it easy for folks in the open source world to continue the development. The database must be invisible to the end user with no maintenance headaches.
>
> Mike, why do you feel strongly that we should go with a Java DB?
>
> Thanks again!
>
> Eric
>
>
> --- On Fri, 10/16/09, Mike Kienenberger <[hidden email]> wrote:
>
>> From: Mike Kienenberger <[hidden email]>
>> Subject: Re: Cayenne and SqlLite, Cayenne 3.0 vs. 2.0
>> To: [hidden email]
>> Date: Friday, October 16, 2009, 5:40 PM
>> Yes, I'd recommend H2, Hsqldb, or
>> derby.
>>
>> I use H2 these days for small projects.  I used to use
>> hsqldb.   Derby
>> didn't seem to offer any advantage over these when I'd
>> looked at it in
>> the past, but it's still probably better than a non-java
>> db.
>>
>> On Fri, Oct 16, 2009 at 5:21 PM, John Armstrong <[hidden email]>
>> wrote:
>> > I use Derby for this. Its embedded. Its java. It works
>> exceptionally well.
>> >
>> > John-
>> >
>> > On Fri, Oct 16, 2009 at 2:09 PM, Eric Lazarus <[hidden email]>
>> wrote:
>> >> Folks
>> >>
>> >> Are people building new systems on Cayenne 3.0 or
>> 2.0, mostly? What is recommended? (We have been deeply back
>> versioned, successfully using 1.1 for many years.)
>> >>
>> >> I am about to release a threat modeling tool as an
>> open source desktop system and I would like to have it save
>> its data to a local, very low maintanane database. I was
>> thinking SqlLite. Is it practical for me to save/retieve my
>> objects to SqlLite via Cayenne? It seems that Sqlite is
>> supported only in 3.0 not in 2.0.6. How stable is the
>> current release 3.0M6?
>> >>
>> >> Is it possible or desireable to add the sqlite
>> package from 3.0 to the 2.0 system?
>> >>
>> >> Is there another database that is so low maintance
>> that I could consider using it as a personal data store for
>> a desktop app that IS well supported by Cayenne in 2.0, if
>> 2.0 is recommended for current development/depolyment?
>> >>
>> >> Thanks!
>> >>
>> >> Eric
>> >>
>> >>
>> >>
>> >>
>> >
>>
>
>
>
>
Michael Gentry-2

Re: Cayenne and SqlLite, Cayenne 3.0 vs. 2.0

Reply Threaded More More options
Print post
Permalink
In reply to this post by Eric Lazarus
On Fri, Oct 16, 2009 at 5:47 PM, Eric Lazarus <[hidden email]> wrote:
> Thanks for all the help, folks!

Welcome!

> So, are people saying we should go with Cayenne 3.x and H2 or Apache Derby as our personal desktop data store? We didn't want to use anything that was unstable or incomplete but it is sounding like 3.x is what is current.

Cayenne 3.0 is pretty stable, even if it is at M6.  Whether it is
incomplete or not probably depends on what you'd hope to find in 3.0.
:-)

> Who is using Apache Derby? Who is using SQLLite? What makes sense for us? Our goals are to get this out RAPIDLY and make it run on everything, install easily and make it easy for folks in the open source world to continue the development. The database must be invisible to the end user with no maintenance headaches.

I know Apache Derby is embedded in Apache Geronimo.  I don't know what
JBoss/Glassfish/etc use.  I've not had much experience with Derby, but
it seemed to me to be bigger/heavier than H2 or HSQL.  I don't know if
it is more reliable or feature complete or easier to use, though.
Some of that is subjective, anyway.
Michael Gentry-2

Re: Cayenne and SqlLite, Cayenne 3.0 vs. 2.0

Reply Threaded More More options
Print post
Permalink
In reply to this post by Mike Kienenberger
The H2 web site says "Embedded and server modes; in-memory databases" ...

On Fri, Oct 16, 2009 at 5:53 PM, Mike Kienenberger <[hidden email]> wrote:
> Hsqldb will even run entirely in memory with no file system access.
> Not as sure about h2.
Lucas Holt

Re: Cayenne and SqlLite, Cayenne 3.0 vs. 2.0

Reply Threaded More More options
Print post
Permalink
In reply to this post by Eric Lazarus

On Oct 16, 2009, at 5:09 PM, Eric Lazarus wrote:

> Folks
>
> Are people building new systems on Cayenne 3.0 or 2.0, mostly? What  
> is recommended? (We have been deeply back versioned, successfully  
> using 1.1 for many years.)
>


I started on 2.0 with a new project earlier this year. While debugging  
another problem, I tried migration to 3.0.  I would highly recommend  
going with 3.0M6.  It's working better for us.  If you use the  
modeler, it's quite nice in 3.0.  Even if you don't take advantage of  
new features in 3.0, it seems to be much more efficient and there are  
subtle documentation improvements.

Lucas Holt
[hidden email]
________________________________________________________
MidnightBSD.org (Free OS)
JustJournal.com (Free blogging)