Java Reference
In-Depth Information
public String getPublisher() {
return publisher;
public void setPublisher(String publisher) {
this.publisher = publisher;
public String getDate() {
return date;
public void setDate(String date) { = date;
public String getTitle() {
return title;
public void setTitle(String title) {
this.title = title;
public String getAuthor() {
return author;
public void setAuthor(String author) { = author;
Creating a Persistence Configuration file
An EJB 3.0 entity bean is required to have a persistence.xml configuration file,
which defines the database persistence properties. A persistence.xml file gets
added to the META-INF folder when a JPA project is defined. Copy the following
listing to the persistence.xml file in Eclipse:
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns:xsi=""
xmlns="" version="1.0">
<persistence-unit name="em">
Search WWH ::

Custom Search