Maforast
Maforast

Reputation: 397

CRUD operation using hibernate + jersey ws

I have generated a model and dao with hibernate tools.

Now I would like to use the model and dao to make a query on a database using a restful web service with jersey.

Is it possible?

Upvotes: 1

Views: 12629

Answers (1)

Bosko Mijin
Bosko Mijin

Reputation: 3349

Yes, it is possible. Check this question: REST with Java (JAX-RS) using Jersey.

Generally, there are a lot of solutions, you have to search some. I think that most efficient for start is this one:

http://www.vogella.com/tutorials/REST/article.html

In that example you have a lot of information for creating everything including CRUD with Jersey in general.

After that you can check this:

http://persistentdesigns.com/wp/jersey-spring-and-jpa/

There is explained process of integrating Jersey and JPA in spring.

I hope that helps.

Upvotes: 1

Related Questions