hibernate subclass map 父類到子類時轉換出錯(大家幫下忙)(3)
實體物件:
主表:
public class CreditInquiry implements Serializable {
private static final long serialVersionUID = 1L;
public static String REF = "CreditInquiry";
public static String PROP_TYPE = "type";
public static String PROP_TYPE_NAME = "typeName";
public static String PROP_NO = "no";
public static String PROP_CREATE_TIME = "createTime";
public static String PROP_UPDATE_TIME = "updateTime";
public static String PROP_ORGANIZATION_NO = "organizationNo";
public static String PROP_UPDATE_ORGANIZATION_NO = "updateOrganizationNo";
public static String PROP_STAFFER_NO = "stafferNo";
public static String PROP_UPDATE_STAFFER_NO = "updateStafferNo";
public static String PROP_ID = "Id";
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Long id;
// fields
private java.lang.String type;
private java.lang.String typeName;
private java.lang.String no;
private java.util.Date createTime;
private java.util.Date updateTime;
private java.lang.String organizationNo;
private java.lang.String updateOrganizationNo;
private java.lang.String stafferNo;
private java.lang.String updateStafferNo;
...........
.............
}
子類..
public class CreditInquiryIndividualCustomer extends CreditInquiry implements Serializable {
private static final long serialVersionUID = 1L;
public static String REF = "CreditInquiryIndividualCustomer";
public static String PROP_NAME = "name";
public static String PROP_VALUE = "value";
public static String PROP_CREDIT_INQUIRY_ID = "CreditInquiryId";
private int hashCode = Integer.MIN_VALUE;
// collections
private java.util.Map properties;
......
......
}
我也問過同事,說這個表就不合理,這裡沒有父子關係,這裡沒有子類,這裡我把它看作子類的[類],其實是一個屬性而已..
請大家幫我分析一下..
主表:
public class CreditInquiry implements Serializable {
private static final long serialVersionUID = 1L;
public static String REF = "CreditInquiry";
public static String PROP_TYPE = "type";
public static String PROP_TYPE_NAME = "typeName";
public static String PROP_NO = "no";
public static String PROP_CREATE_TIME = "createTime";
public static String PROP_UPDATE_TIME = "updateTime";
public static String PROP_ORGANIZATION_NO = "organizationNo";
public static String PROP_UPDATE_ORGANIZATION_NO = "updateOrganizationNo";
public static String PROP_STAFFER_NO = "stafferNo";
public static String PROP_UPDATE_STAFFER_NO = "updateStafferNo";
public static String PROP_ID = "Id";
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Long id;
// fields
private java.lang.String type;
private java.lang.String typeName;
private java.lang.String no;
private java.util.Date createTime;
private java.util.Date updateTime;
private java.lang.String organizationNo;
private java.lang.String updateOrganizationNo;
private java.lang.String stafferNo;
private java.lang.String updateStafferNo;
...........
.............
}
子類..
public class CreditInquiryIndividualCustomer extends CreditInquiry implements Serializable {
private static final long serialVersionUID = 1L;
public static String REF = "CreditInquiryIndividualCustomer";
public static String PROP_NAME = "name";
public static String PROP_VALUE = "value";
public static String PROP_CREDIT_INQUIRY_ID = "CreditInquiryId";
private int hashCode = Integer.MIN_VALUE;
// collections
private java.util.Map properties;
......
......
}
我也問過同事,說這個表就不合理,這裡沒有父子關係,這裡沒有子類,這裡我把它看作子類的[類],其實是一個屬性而已..
請大家幫我分析一下..
相關文章
- hibernate subclass map 父類到子類時轉換出錯(大家幫下忙)(2)
- 父類和子類之間的轉換問題
- spring+Hibernate執行時出錯,各位大哥幫忙啊!!!!!!!!!!!!!!!!!!!Spring
- 安裝出錯,請幫忙看看(轉)
- 如何理解Python3中的子類和父類?Python
- 類的繼承_子類繼承父類繼承
- C# 繼承 子類(派生類) 父類(基類)C#繼承
- 在jbuilder下,jive出錯。各位幫忙呀!UI
- 鏈式-父類中返回子類物件物件
- 子父類中函式函式
- 我的第一個entity Ejb就出錯!大家幫幫忙
- java中父類宣告子類例項化Java
- 子類繼承父類(父類和子類裡:塊、靜態塊、構造和方法覆寫)之間呼叫順序繼承
- php5.3.3呼叫https的wsdl,出現錯誤,請大家幫忙看看PHPHTTP
- 子父類中成員變數變數
- 父類和子類的建構函式問題函式
- Java 中建立子類物件會建立父類物件麼?Java物件
- 京東獲得jd商品分類API介面(父分類、根分類、子分類)API
- java中多型的理解——父類引用指向子類物件Java多型物件
- [短文速度-4] new子類是否會例項化父類
- 子類重寫父類的方法@Override的快捷鍵IDE
- 子類繼承父類的建構函式(方法)嗎?繼承函式
- 關於CSS中的定位使用子絕父相(子類絕對位置和父類相對位置)CSS
- 大家幫幫忙,看看這個SQL怎麼寫!SQL
- 用URLClassLoader無法實現重新載入類,幫幫忙
- Java子類和父類的初始化執行順序Java
- C++父類指標指向子類物件的實現原理C++指標物件
- 安裝時提示錯誤,請高手幫忙解決一下
- Map集合中的具體子類TreeMap
- 我在安裝第一個軟體mplayer時遇到困難,請大家幫忙!(轉)
- jsp+javaBean+hibernate 執行時報錯,大家幫著看看!JSJavaBean
- Java常用時間格式轉換工具類Java
- 從子類化到Typeclass
- 一道面試題:大家幫忙解決面試題
- jsp與xmlhttp在IE5.0中出現亂碼!請大家幫幫忙!JSXMLHTTP
- 基類與派生類的轉換
- C#介面、抽象類、普通類和繼承(子類與父類)都有其特定的用途和場景C#抽象繼承
- 急不理解的問題,大家幫幫忙,關於jive