java - Could not find a getter for xxx in class
黄舟
黄舟 2017-04-18 09:23:16
[Java讨论组]
javax.persistence.PersistenceException: [PersistenceUnit: entityManagerCIS] Unable to build EntityManagerFactory
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
    at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy116.start(Unknown Source)
    at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
    at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:628)
    at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:352)
    at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:83)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy33.start(Unknown Source)
    at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:525)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy34.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy9.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy5.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    at org.jboss.Main.boot(Main.java:200)
    at org.jboss.Main$1.run(Main.java:513)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for kitLineNo in class com.synnex.orm.contract.ContractSummaryPO
    at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:282)
    at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)
    at org.hibernate.mapping.Property.getGetter(Property.java:272)
    at org.hibernate.tuple.entity.PojoEntityTuplizer.buildPropertyGetter(PojoEntityTuplizer.java:247)
    at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:125)
    at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
    at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56)
    at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:302)
    at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
    at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
    at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
    at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:874)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
    ... 144 more
    
    
    
    <?xml version="1.0"?>

<!DOCTYPE hibernate-mapping PUBLIC

    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<!-- Generated 2016-1-28 10:31:38 by SYNNEX Customized Hibernate Tools 3.4.0.CR1 -->
<hibernate-mapping>

<class name="com.synnex.orm.contract.ContractSummaryPO" table="service_contract_line_sum" catalog="CIS">
    <composite-id name="id" class="com.synnex.orm.contract.ContractSummaryPOId">
        <key-property name="contractNo" type="integer">
            <column name="contract_no" />
        </key-property>
        <key-property name="skuNo" type="integer">
            <column name="sku_no" />
        </key-property>
    </composite-id>
    <property name="contractType" type="integer">
        <column name="contract_type" not-null="true" />
    </property>
    <property name="lineNo" type="integer">
        <column name="line_no" not-null="true" />
    </property>
    <property name="serviceNo" type="integer">
        <column name="service_no" />
    </property>
    <property name="qty" type="integer">
        <column name="qty" />
    </property>
    <property name="vendTransRefId" type="string">
        <column name="vend_trans_ref_id" length="100" />
    </property>
    <property name="billingStartDate" type="timestamp">
        <column name="billing_start_date" length="23" />
    </property>
    <property name="billingEndDate" type="timestamp">
        <column name="billing_end_date" length="23" />
    </property>
    <property name="unitCost" type="big_decimal">
        <column name="unit_cost" scale="4" />
    </property>
    <property name="unitPrice" type="big_decimal">
        <column name="unit_price" scale="4" />
    </property>
    <property name="autoBillFlag" type="character">
        <column name="auto_bill_flag" length="1" />
    </property>
    <property name="billModel" type="string">
        <column name="bill_model" length="20" />
    </property>
    <property name="lastBillDate" type="timestamp">
        <column name="last_bill_date" length="23" />
    </property>
    <property name="billFrequency" type="string">
        <column name="bill_frequency" length="30" />
    </property>
    <property name="autoBillDay" type="integer">
        <column name="auto_bill_day" />
    </property>
    <property name="provisionedDate" type="timestamp">
        <column name="provisioned_date" length="23" />
    </property>
    <property name="euPrice" type="big_decimal">
        <column name="eu_price" scale="4" />
    </property>
    <property name="cpoId" type="integer">
        <column name="cpo_id" />
    </property>
    <property name="entryId" type="integer">
        <column name="entry_id" not-null="true" />
    </property>
    <property name="entryDatetime" type="timestamp">
        <column name="entry_datetime" length="23" not-null="true" />
    </property>
    <property name="kitLineNo" type="integer">
        <column name="kit_line_no" />
    </property>
    <property name="isSumQty" type="character">
        <column name="is_sum_qty" length="1" />
    </property>
    <property name="extRefId" type="string">
        <column name="ext_ref_id" length="100" />
    </property>
</class>

</hibernate-mapping>

package com.synnex.orm.contract;

// Generated 2016-1-28 10:31:37 by SYNNEX Customized Hibernate Tools 3.4.0.CR1

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**

  • ContractSummaryPO generated by hbm2java
    */

public class ContractSummaryPO implements Serializable {

private static final long serialVersionUID = -66627216344849733L;

private ContractSummaryPOId id;
private Integer contractType;
private Integer lineNo;
private Integer serviceNo;
private Integer qty;
private String vendTransRefId;
private Date billingStartDate;
private Date billingEndDate;
private BigDecimal unitCost;
private BigDecimal unitPrice;
private Character autoBillFlag;
private String billModel;
private Date lastBillDate;
private String billFrequency;
private Integer autoBillDay;
private Date provisionedDate;
private BigDecimal euPrice;
private Integer cpoId;
private Integer entryId;
private Date entryDatetime;
private Integer kitLineNo;
private Character isSumQty;
private String extRefId;

public ContractSummaryPO() {
}

public ContractSummaryPO(ContractSummaryPOId id,
                              Integer contractType, Integer lineNo, Integer entryId,
                              Date entryDatetime) {
    this.id = id;
    this.contractType = contractType;
    this.lineNo = lineNo;
    this.entryId = entryId;
    this.entryDatetime = entryDatetime;
}

public ContractSummaryPO(ContractSummaryPOId id,
                              Integer contractType, Integer lineNo, Integer serviceNo,
                              Integer qty, String vendTransRefId, Date billingStartDate,
                              Date billingEndDate, BigDecimal unitCost, BigDecimal unitPrice,
                              Character autoBillFlag, String billModel, Date lastBillDate,
                              String billFrequency, Integer autoBillDay, Date provisionedDate,
                              BigDecimal euPrice, Integer cpoId, Integer entryId,
                              Date entryDatetime, Integer kitLineNo, Character isSumQty,String extRefId) {
    this.id = id;
    this.contractType = contractType;
    this.lineNo = lineNo;
    this.serviceNo = serviceNo;
    this.qty = qty;
    this.vendTransRefId = vendTransRefId;
    this.billingStartDate = billingStartDate;
    this.billingEndDate = billingEndDate;
    this.unitCost = unitCost;
    this.unitPrice = unitPrice;
    this.autoBillFlag = autoBillFlag;
    this.billModel = billModel;
    this.lastBillDate = lastBillDate;
    this.billFrequency = billFrequency;
    this.autoBillDay = autoBillDay;
    this.provisionedDate = provisionedDate;
    this.euPrice = euPrice;
    this.cpoId = cpoId;
    this.entryId = entryId;
    this.entryDatetime = entryDatetime;
    this.kitLineNo = kitLineNo;
    this.isSumQty = isSumQty;
    this.extRefId = extRefId;
}

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

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

public Integer getContractType() {
    return this.contractType;
}

public void setContractType(Integer contractType) {
    this.contractType = contractType;
}

public Integer getLineNo() {
    return this.lineNo;
}

public void setLineNo(Integer lineNo) {
    this.lineNo = lineNo;
}

public Integer getServiceNo() {
    return this.serviceNo;
}

public void setServiceNo(Integer serviceNo) {
    this.serviceNo = serviceNo;
}

public Integer getQty() {
    return this.qty;
}

public void setQty(Integer qty) {
    this.qty = qty;
}

public String getVendTransRefId() {
    return this.vendTransRefId;
}

public void setVendTransRefId(String vendTransRefId) {
    this.vendTransRefId = vendTransRefId;
}

public Date getBillingStartDate() {
    return this.billingStartDate;
}

public void setBillingStartDate(Date billingStartDate) {
    this.billingStartDate = billingStartDate;
}

public Date getBillingEndDate() {
    return this.billingEndDate;
}

public void setBillingEndDate(Date billingEndDate) {
    this.billingEndDate = billingEndDate;
}

public BigDecimal getUnitCost() {
    return this.unitCost;
}

public void setUnitCost(BigDecimal unitCost) {
    this.unitCost = unitCost;
}

public BigDecimal getUnitPrice() {
    return this.unitPrice;
}

public void setUnitPrice(BigDecimal unitPrice) {
    this.unitPrice = unitPrice;
}

public Character getAutoBillFlag() {
    return this.autoBillFlag;
}

public void setAutoBillFlag(Character autoBillFlag) {
    this.autoBillFlag = autoBillFlag;
}

public String getBillModel() {
    return this.billModel;
}

public void setBillModel(String billModel) {
    this.billModel = billModel;
}

public Date getLastBillDate() {
    return this.lastBillDate;
}

public void setLastBillDate(Date lastBillDate) {
    this.lastBillDate = lastBillDate;
}

public String getBillFrequency() {
    return this.billFrequency;
}

public void setBillFrequency(String billFrequency) {
    this.billFrequency = billFrequency;
}

public Integer getAutoBillDay() {
    return this.autoBillDay;
}

public void setAutoBillDay(Integer autoBillDay) {
    this.autoBillDay = autoBillDay;
}

public Date getProvisionedDate() {
    return this.provisionedDate;
}

public void setProvisionedDate(Date provisionedDate) {
    this.provisionedDate = provisionedDate;
}

public BigDecimal getEuPrice() {
    return this.euPrice;
}

public void setEuPrice(BigDecimal euPrice) {
    this.euPrice = euPrice;
}

public Integer getCpoId() {
    return this.cpoId;
}

public void setCpoId(Integer cpoId) {
    this.cpoId = cpoId;
}

public Integer getEntryId() {
    return this.entryId;
}

public void setEntryId(Integer entryId) {
    this.entryId = entryId;
}

public Date getEntryDatetime() {
    return this.entryDatetime;
}

public void setEntryDatetime(Date entryDatetime) {
    this.entryDatetime = entryDatetime;
}

public Integer getKitLineNo() {
    return this.kitLineNo;
}

public void setKitLineNo(Integer kitLineNo) {
    this.kitLineNo = kitLineNo;
}

public Character getIsSumQty() {
    return this.isSumQty;
}

public void setIsSumQty(Character isSumQty) {
    this.isSumQty = isSumQty;
}

public String getExtRefId() {
    return extRefId;
}

public void setExtRefId(String extRefId) {
    this.extRefId = extRefId;
}

}

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

全部回复(1)
PHP中文网

错误提示说找不到get方法,说明hibernate在将数据进行实体转换的时候反射值,没找到某属性的get方法。
建议在编写Entity的时候

  1. 每次修改了属性,就重新生成get and set,带参构造和无参构造器。

  2. 实体类尽量都实现Serializable接口,以便某些框架进行序列化操作。

  3. 如果有必要的话,可以将get和set设置为final形式。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号