• 大小: 25.97MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-28
  • 语言: Java
  • 标签:

资源简介

精通Hibernate:Java对象持久化技术详解

资源截图

代码片段和文件信息

package mypack;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Customer implements Serializable {

    /** identifier field */
    private Long id;

    /** nullable persistent field */
    private String name;

    /** persistent field */
    private Set orders;
    private int age;
    /** full constructor */
    public Customer(String name Set orders) {
        this.name = name;
        this.orders = orders;
    }

    /** default constructor */
    public Customer() {
    }

    /** minimal constructor */
    public Customer(Set orders) {
        this.orders = orders;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

 public int getAge() {
        return this.age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public Set getOrders() {
        return this.orders;
    }

    public void setOrders(Set orders) {
        this.orders = orders;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append(“id“ getId())
            .toString();
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-04-25 10:25  精通Hibernate\
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\
     文件    16948839  2012-04-23 20:44  精通Hibernate\精通Hibernate.pdf
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\chapter10\
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\chapter10\classes\
     文件         822  2007-02-01 19:52  精通Hibernate\精通Hibernate\chapter10\classes\hibernate.cfg.xml
     文件        1195  2007-02-01 19:52  精通Hibernate\精通Hibernate\chapter10\classes\log4j.properties
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\chapter10\classes\mypack\
     文件        8456  2007-02-01 19:52  精通Hibernate\精通Hibernate\chapter10\classes\mypack\BusinessService.class
     文件        1563  2007-02-01 19:52  精通Hibernate\精通Hibernate\chapter10\classes\mypack\Customer.class
     文件         834  2007-02-01 19:52  精通Hibernate\精通Hibernate\chapter10\classes\mypack\Customer.hbm.xml
     文件        1505  2007-02-01 19:52  精通Hibernate\精通Hibernate\chapter10\classes\mypack\Order.class
     文件         799  2007-02-01 19:52  精通Hibernate\精通Hibernate\chapter10\classes\mypack\Order.hbm.xml
     目录           0  2007-02-01 20:17  精通Hibernate\精通Hibernate\chapter10\schema\
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\chapter10\src\
     文件         822  2007-02-01 17:55  精通Hibernate\精通Hibernate\chapter10\src\hibernate.cfg.xml
     文件        1195  2004-01-18 20:25  精通Hibernate\精通Hibernate\chapter10\src\log4j.properties
     目录           0  2007-02-01 20:17  精通Hibernate\精通Hibernate\chapter10\src\mypack\
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\chapter11\
     文件        3097  2005-03-30 18:10  精通Hibernate\精通Hibernate\chapter11\build.xml
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\chapter11\schema\
     文件        1399  2005-04-05 14:55  精通Hibernate\精通Hibernate\chapter11\schema\sampledb.sql
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\chapter11\src\
     文件        1195  2004-01-18 20:25  精通Hibernate\精通Hibernate\chapter11\src\log4j.properties
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\chapter11\src\mypack\
     文件        1426  2005-02-01 15:25  精通Hibernate\精通Hibernate\chapter11\src\mypack\Customer.java
     文件         816  2005-02-04 17:00  精通Hibernate\精通Hibernate\chapter11\src\mypack\CustomerRow.java
     文件         702  2005-02-17 15:52  精通Hibernate\精通Hibernate\chapter11\src\mypack\Order.hbm.xml
     文件        1499  2005-02-04 20:44  精通Hibernate\精通Hibernate\chapter11\src\mypack\Order.java
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\chapter12\
     目录           0  2012-04-25 10:25  精通Hibernate\精通Hibernate\chapter12\12.6.1\
............此处省略446个文件信息

评论

共有 条评论

相关资源