Siena vs Spring Data

24 views
Skip to first unread message

Emanuele Ziglioli

unread,
Oct 11, 2012, 4:44:31 PM10/11/12
to siena-...@googlegroups.com
Has anyone had experience with Spring Data?
I've seen a presentation and it looks very powerful.
Have never used Spring myself and I wonder whether it's required at all for Data.

Pascal Voitot Dev

unread,
Oct 11, 2012, 5:37:20 PM10/11/12
to siena-...@googlegroups.com
I've studied Spring Data code a bit...
interesting principles but this is a bit strange because you may think it's a common API for all DB.
But no, there is almost one API per DB or to be more precise per DB type. So as many NoSQL DB are completely different, the API are different. A few principles and patterns are common but that's all.
Anyway, I think it's not a bad choice because the more I work with different DB, the more I think common API is very hard to maintain and sometimes hide too much of the DB features itself.
Siena tried to reduce the distance between SQL and GAE but it's really hard to keep full compatibility, almost impossible actually. You can only reduce the number of features provided by the framework or you get crazy.
Hibernate is a good example because even if SQL DB should be quite standard, the differences are huge also and hibernate is just an intersection and can't do everything.

Spring-Data doesn't have this problem. But I looked at the code and as Spring, it's heavily based on  runtime enhancement of your classes and this is not something I consider viable in terms of performance, maintainability and robustness. But anyway I trust those people to write great code and in Java you don't really have choice to do else ;)

Pascal
 

--
You received this message because you are subscribed to the Google Groups "Siena" group.
To view this discussion on the web visit https://groups.google.com/d/msg/siena-discuss/-/Bncb7Tk5sKMJ.
To post to this group, send email to siena-...@googlegroups.com.
To unsubscribe from this group, send email to siena-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/siena-discuss?hl=en.

Emanuele Ziglioli

unread,
Oct 11, 2012, 8:45:13 PM10/11/12
to siena-...@googlegroups.com
Interesting comments, will stick with Siena for the time being :-)

On Friday, 12 October 2012 10:37:42 UTC+13, Pascal wrote:

Pascal Voitot Dev

unread,
Oct 12, 2012, 2:45:29 AM10/12/12
to siena-...@googlegroups.com
It's interesting to look at Spring-data but if anyone thinks it's JPA++ for all DB, they're wrong ;)

On Fri, Oct 12, 2012 at 2:45 AM, Emanuele Ziglioli <the...@emanueleziglioli.it> wrote:
Interesting comments, will stick with Siena for the time being :-)


On Friday, 12 October 2012 10:37:42 UTC+13, Pascal wrote:

--
You received this message because you are subscribed to the Google Groups "Siena" group.
To view this discussion on the web visit https://groups.google.com/d/msg/siena-discuss/-/oo5fdIPp33MJ.
Reply all
Reply to author
Forward
0 new messages