⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bookeditform.java

📁 struts + hibernate + spring ssh 的源码练习
💻 JAVA
字号:
package struts.form;import org.apache.struts.action.ActionForm;import persistence.Book;import persistence.Customer;/**  * MyEclipse Struts * Creation date: 11-04-2004 *  * XDoclet definition: * @struts:form name="bookEditForm" */public class BookEditForm extends ActionForm {	private Book book = new Book();		/**	 * we will need this field to save the customer id in the dialogs where a customer borrows a book	 */	private Long customerId;	  /**   * @return Returns the book.   */  public Book getBook() {    return book;  }  /**   * @param book The book to set.   */  public void setBook(Book book) {    this.book = book;  }  /* (non-Javadoc)   * @see java.lang.Object#equals(java.lang.Object)   */  public boolean equals(Object arg0) {    return book.equals(arg0);  }  /**   * @return   */  public String getAuthor() {    return book.getAuthor();  }  /**   * @return   */  public Boolean getAvailable() {    return book.getAvailable();  }  /**   * @return   */  public Customer getCustomer() {    return book.getCustomer();  }  /**   * @return   */  public Long getId() {    return book.getId();  }  /**   * @return   */  public String getTitle() {    return book.getTitle();  }  /* (non-Javadoc)   * @see java.lang.Object#hashCode()   */  public int hashCode() {    return book.hashCode();  }  /**   * @param author   */  public void setAuthor(String author) {    book.setAuthor(author);  }  /**   * @param available   */  public void setAvailable(Boolean available) {    book.setAvailable(available);  }  /**   * @param customer   */  public void setCustomer(Customer customer) {    book.setCustomer(customer);  }  /**   * @param id   */  public void setId(Long id) {    book.setId(id);  }  /**   * @param title   */  public void setTitle(String title) {    book.setTitle(title);  }  /* (non-Javadoc)   * @see java.lang.Object#toString()   */  public String toString() {    return book.toString();  }  /**   * @return Returns the customerId.   */  public Long getCustomerId() {    return customerId;  }  /**   * @param customerId The customerId to set.   */  public void setCustomerId(Long customerId) {    this.customerId = customerId;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -