Link Details

Link 793483 thumbnail
User 400302 avatar

By jbrisbin
via springsource.org
Published: May 17 2012 / 12:38

I'm pleased to announce the release of Spring Data REST 1.0.0.M2, which exports Spring Data JPA Repositories over HTTP as RESTful endpoints. Included in this release are many bug fixes as well as great new functionality like calling query methods to search for entities via HTTP GET, support for JSR-303 and Spring Validator bean validation, extending the functionality of the exporter by plugging into Spring ApplicationEvents, and a new URL path and link rel configuration annotation.
  • 24
  • 0
  • 2875
  • 1071

Comments

Add your comment
User 226303 avatar

devdanke replied ago:

0 votes Vote down Vote up Reply

Is anyone using this? If so, how and why?

What were you using before? What makes Spring Data REST better?

Thanks for sharing!

User 1022461 avatar

jhiemer replied ago:

2 votes Vote down Vote up Reply

Hi,
I have been using it now for nearly fours weeks (started two days after M1 release) and I am really satisfied with it. There were some minor problems in the beginnings, which have been fixed by Jonathan Brisbin immediately. Communication to him is great, very responsive, open for ideas and constructive criticism. (Example: https://github.com/SpringSource/spring-data-rest/issues/11, as you can see I am heavily working with it :-).

Regarding your questions here are my answers:

>If so, how and why?
We have a REST interface running besides our Web Portal, which supplies information for a service running elsewhere, in some cases thousands of kilometers away. After discussing the design in the early stages of the project, we decided to go with REST as it is scalable and very reliable due its simple architecture. In the first release, we implemented the REST interface with Spring 3.0 on our own. Shortly after release of Spring Data REST M1, I created a parallel project using Spring Data REST. And what can I tell you? I could close the gap to the existing project significantly. Only 10% are open and need to be developed.

>What were you using before?
Spring MVC 3.0/3.1

>What makes Spring Data REST better?
Here is my list of what I think makes Spring Data REST better:
- In correlation with Spring Data JPA implementation and usage is a no-brainer
- It removes a LOT of boiler plate code, which would have to be maintained
- It provides all the functionality regarding validation and security I need so far
- It provides the cleanest HATEOAS interface I have ever used. :-)
- You can actively support development process with ideas and improvements

One disadvantage at the end:
- So far the implementation only supports JSON/URI-LIST as datatypes. XML is missing but will follow.

If you would like to know more, feel free to ask. ,
,

User 226303 avatar

devdanke replied ago:

0 votes Vote down Vote up Reply

I appreciate you sharing your particular experience in detail.
You've motivated me to delve deeper into both Spring Data JPA and REST.
:-)

User 993315 avatar

kbwelker replied ago:

0 votes Vote down Vote up Reply

Hi jhiemer,

The absence of xml is a killer for me. I am looking thru the current documentation (RC1), and I have not yet found xml support. Do you know if it exists or is actively under development for a quick maintenance release? If so, can you point me to how to use it? Thx.

User 1022461 avatar

jhiemer replied ago:

1 votes Vote down Vote up Reply

Hi kbwelker,
currently XML support is not implemented. Looking at code shows, that data is returned via ModelAndView. So sticking to samples in Spring MVC it might be possible, that Jon implements XML in future. That's all I know.

Jon is currently on holidays as far as I know. Perhaps oliver.gierke knows more details.

User 993315 avatar

kbwelker replied ago:

0 votes Vote down Vote up Reply

Thanks for the answer. I posted on the Spring Data forum too, so maybe Jon or Oliver will respond there.

User 993315 avatar

kbwelker replied ago:

1 votes Vote down Vote up Reply

Jon replied on Stackoverflow at: http://stackoverflow.com/a/11441300/433348
Xml will *not* be supported in 1.0.0, for decent reasons, to be flushed out after folks have had some time to use the GA release for a while.

User 1022461 avatar

jhiemer replied ago:

0 votes Vote down Vote up Reply

kbwelker,
good catch did not remember that, although I have seen that already. :-)

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Java EE7
Written by: Andrew Lee Rubinger
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. CI Patterns
  5. CI Tools
  1. Spring Integration
  2. Git
  3. Regex
  4. Java
  5. REST