JSON not returning columns in Spring Data REST

I am trying out examples for Spring Data REST however the JSON object returned in my testing does not return the column names (which were earlier 'PUT') and just returns the links to the objects. What could be wrong?


Entity: 'User'

public class User {

    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;
    private String guid;
    private String fullName;
    private String email;

Repository: UserRepository (Exposed as REST service)

@RepositoryRestResource(collectionResourceRel = "users", path = "users")
public interface UserRepository extends JpaRepository<User, Long> {

REST 'PUT' request to create a USER object:

REST GET Call to get the JSON response for the User object (the problem)

No id, Guid or email is returned in the JSON response.


Removing lombok's @Data annotation made all basic properties appear in the JSON response. Looks like a side effect of lombok.

Need Your Help

View Controllers giving a an error when creating a segue

ios iphone objective-c xcode

I have a navigation controller and the first VC modals into the second one fine. I pressed ctrl+button and dragged it over, all works fine.

How to perform right click using Selenium in python?

python python-2.7 selenium selenium-webdriver right-click

I wonder if someone has solution how to perform trivial right click action on any element of DOM. Let's for example do right click on the 'Google Search' button to select 'Save Page As' option.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.