How to retrieve data from database using webservices (JAX - RS) in eclipse using Java
问题 I have done inserting a record into database but I don't know how to retrieve it. My code is: Account.java: package com.fetch; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Id; public class Account implements Serializable { @Id private long id; @Column(name="NAME") private String name; public Account() { } public Account(int id, String name) { this.id = id; this.name = name; } public long getId() { return id; } public void setId(long id) { this.id = id