- 浏览: 324673 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
Mr丶Chenn:
...
doFilter如何使用 -
Mr丶Chenn:
[url][url][url][url][/url][/url ...
doFilter如何使用 -
Mr丶Chenn:
...
doFilter如何使用 -
Mr丶Chenn:
引用引用引用引用引用
doFilter如何使用 -
honlin:
SafeUtil.getDateFormat().trim() ...
DateUtil
<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" > <hibernate-mapping package="com.nstc.fbcm.model"> <class name="FbBusiness" table="FB_BUSINESS"> <id column="BID" name="Bid" type="integer" > <generator class="assigned" /> </id> <property column="AMOUNT" length="15" name="Amount" not-null="true" type="big_decimal" /> <property column="AMOUNT1" length="15" name="AmountTotal" not-null="true" type="big_decimal" /> <property column="STATE" length="22" name="State" not-null="true" type="integer" /> <property column="COMPLEXCODE" length="512" name="Complexcode" not-null="false" type="string" /> <property column="SUB_STATE" length="22" name="SubState" not-null="false" type="integer" /> <property column="SIGN_DATE" length="7" name="SignDate" not-null="false" type="date" /> <property column="CREATE_TIME" length="7" name="CreateTime" not-null="true" type="java.util.Date" /> <property column="CONTRACT_NO" length="32" name="ContractNo" not-null="true" type="string" /> <property column="INPUTOR" length="100" name="Inputor" not-null="false" type="string" /> <property column="INPUTOR_ID" length="22" name="InputorId" not-null="false" type="integer" /> <property column="BRNO" length="32" name="BrNo" not-null="false" type="string" /> <property column="LAST_UPDATE_TIME" length="7" name="LastUpdateTime" not-null="false" type="java.util.Date" /> <property column="APPROVE_MEMO" length="1024" name="ApproveMemo" not-null="false" type="string" /> <property column="START_DATE" length="7" name="StartDate" not-null="true" type="date" /> <many-to-one class="com.nstc.fbcc.model.CorporationPO" name="Debtor" not-null="true" > <column name="DEBTOR" /> </many-to-one> <property column="REMARK" length="1024" name="Remark" not-null="false" type="string" /> <property column="MATURITY" length="7" name="Maturity" not-null="true" type="date" /> <many-to-one class="FbCurrency" name="Currency" not-null="true" > <column name="CURRENCY_NO" /> </many-to-one> <many-to-one class="FbBizType" name="BizType" not-null="true" > <column name="BIZ_TYPE" /> </many-to-one> <map name="Properties" table="FB_BUSINESS_PROPERTIES" lazy="false" cascade="none" inverse="true" > <key column="BID"/> <index column="PROP_KEY" type="string"/> <composite-element class="FbBussProperty"> <property column="PROP_VALUE" length="256" name="PropValue" not-null="true" type="string" /> <property column="PROP_NAME" length="128" name="PropName" not-null="false" type="string" /> </composite-element> </map> <joined-subclass name="FbSuperContract" table="FB_SUPER_CONTRACTS"> <key column="BID" /> <property column="REFILL_METHOD" length="22" name="RefillMethod" not-null="true" type="integer" /> <property column="MULTI_CURRENCY" length="22" name="MultiCurrency" not-null="true" type="boolean" /> <property column="BIZ_TYPE_ACUITY" length="22" name="BizTypeAcuity" not-null="true" type="integer" /> <property column="LATEST_START_DATE" length="7" name="LatestStartDate" not-null="false" type="date" /> <property column="AMOUNT_MODE" length="22" name="AmountMode" not-null="true" type="integer" /> <property column="DATE_MODE" length="22" name="DateMode" not-null="true" type="integer" /> <property column="FC_AMOUNT" length="15" name="FcAmount" not-null="false" type="big_decimal" /> <property column="RATE" length="10" name="Rate" not-null="false" type="big_decimal" /> <property column="ISFLOATRATE" length="22" name="IsFloatRate" not-null="false" type="integer" /> <property column="FREEDAY" length="4" name="FreeDay" not-null="false" type="string" /> <property column="FREESTARTDATE" length="7" name="FreeStartDate" not-null="false" type="java.util.Date" /> <property column="FREEENDDATE" length="7" name="FreeEndDate" not-null="false" type="java.util.Date" /> <property column="SURETY_CODE" length="22" name="SuretyCode" not-null="false" type="string" /> <property column="SUPPLYBANK" length="22" name="SupplyBank" not-null="false" type="integer" /> <property column="FINANCETERM" length="22" name="FinanceTerm" not-null="false" type="integer" /> <set cascade="delete-orphan" inverse="true" lazy="false" name="SuperItems" > <key column="BID" /> <one-to-many class="FbCreditItem" /> </set> <set cascade="delete-orphan" inverse="true" lazy="false" name="ManageLogs" > <key column="SUPER_BID" /> <one-to-many class="FbManageUseLog" /> </set> <set cascade="delete-orphan" inverse="true" lazy="false" name="GroupBanks" > <key column="SUPER_BID" /> <one-to-many class="FbGroupBank" /> </set> <set inverse="true" lazy="true" name="FbContracts" table="FB_SUPER_MAP" > <key column="SUPER_BID" /> <many-to-many class="FbContract" column="BID" /> </set> </joined-subclass> <joined-subclass name="FbContract" table="FB_CONTRACTS"> <key column="BID" /> <property column="IN_SUIT" length="22" name="InSuit" not-null="true" type="integer" /> <property column="ISSPLIT" length="22" name="isSplit" not-null="false" type="integer" /> <property column="FINANCETERM" length="22" name="FinanceTerm" not-null="false" type="integer" /> <property column="SELLMODE" length="22" name="SellMode" not-null="false" type="integer" /> <property column="BUYOUT" length="22" name="BuyOut" type="integer" /> <property column="MAIN_CONTRACT_AMOUNT" length="15" name="MainContractAmount" not-null="false" type="big_decimal" /> <property column="MAIN_CURRENCY" length="15" name="MainCurrency" not-null="false" type="string" /> <property column="PROPORTION" length="15" name="Proportion" not-null="false" type="big_decimal" /> <property column="DESCRIPTION" length="2000" name="Description" not-null="false" type="string" /> <property column="GUARANTEE_TYPE" length="22" name="GuaranteeType" not-null="false" type="integer" /> <property column="GUARANTEE_USE" length="2000" name="GuaranteeUse" not-null="false" type="string" /> <property column="PAYMENT_TERM" length="2000" name="PaymentTerm" not-null="false" type="string" /> <property column="NORMRATE_RULE" length="22" name="NormrateRule" not-null="false" type="integer" /> <property column="NORMRATE_RULE_MONTH" length="22" name="NormrateRuleMonth" not-null="false" type="integer" /> <property column="NORMRATE_RULE_DAY" length="22" name="NormrateRuleDay" not-null="false" type="integer" /> <property column="SURETY_TYPES" length="200" name="SuretyTypes" type="string" /> <property column="OP_SURETY_TYPES" length="200" name="OpSuretyTypes" type="string" /> <property column="OP_SURETY_REMARK" length="1000" name="OpSuretyRemark" type="string" /> <property column="RISK_EXPOSURE" length="1000" name="RiskExposure" type="string" /> <property column="LOAN_TYPE" length="22" name="LoanType" not-null="false" type="integer" /> <property column="SUPPLY_BANK_NAME" length="64" name="SupplyBankName" not-null="false" type="string" /> <component name="InterestParam" class="FbInterestParam" > <property column="REPAY_CAPITAL" length="22" name="RepayCapital" not-null="true" type="integer" /> <property column="INTREST_PERIOD" length="22" name="IntrestPeriod" not-null="true" type="integer" /> <property column="INTREST_DAY" length="22" name="IntrestDay" not-null="false" type="integer" /> <property column="PERIOD_BASE" length="22" name="PeriodBase" not-null="true" type="integer" /> <property column="PERIOD_FREEDAY" length="4" name="PeriodFreeday" not-null="false" type="string" /> <property column="ENTIRE_FREEDAY" length="4" name="EntireFreeday" not-null="false" type="string" /> <property column="PERIOD_TYPE" length="22" name="PeriodType" not-null="false" type="string" /> </component> <many-to-one class="com.nstc.fbcc.model.CorporationPO" name="Warrantee" not-null="false" > <column name="WARRANTEE" /> </many-to-one> <many-to-one class="com.nstc.fbcm.model.FbGroupBank" name="GroupBank" not-null="false" > <column name="GROUPBANK" /> </many-to-one> <property column="HANDLE_METHOD" length="22" name="HandleMethod" not-null="false" type="integer" /> <many-to-one class="com.nstc.fbcc.model.CorporationPO" name="Consigner" not-null="false" > <column name="CONSIGNER" /> </many-to-one> <property column="FLOATING_FREQ" length="22" name="FloatingFreq" not-null="false" type="integer" /> <property column="SURETY_RATE" length="8" name="SuretyRate" not-null="false" type="big_decimal" /> <property column="REPAY_CHANNEL" length="2" name="RepayChannel" not-null="false" type="string" /> <property column="EX_RATE" length="12" name="ExRate" not-null="false" type="big_decimal" /> <property column="RECTIFY_RATE" length="8" name="RectifyRate" not-null="false" type="big_decimal" /> <property column="MULTI_LENDING" length="22" name="MultiLending" not-null="true" type="boolean" /> <property column="IS_FLOATING_RATE" length="22" name="IsFloatingRate" not-null="true" type="boolean" /> <property column="CORRELATION_NUM2" length="32" name="CorrelationNum2" not-null="false" type="string" /> <property column="OLD_CONTARCT_NO" length="32" name="OldContarctNo" not-null="false" type="string" /> <property column="FLOATING_METHOD" length="1" name="FloatingMethod" not-null="false" type="string" /> <many-to-one class="com.nstc.fbcc.model.CorporationPO" name="Broker" not-null="false" > <column name="BROKER" /> </many-to-one> <many-to-one class="com.nstc.fbcc.model.UniversalCodePO" name="Beneficiary" not-null="false" > <column name="BENEFICIARY" /> </many-to-one> <property column="FIVE_LEVEL" length="22" name="FiveLevel" not-null="false" type="integer" /> <property column="NOT_WITHHOLDING" length="22" name="NotWithholding" not-null="true" type="integer" /> <property column="DISCOUNT_MODE" length="22" name="DiscountMode" not-null="false" type="integer" /> <property column="CORRELATION_NUM1" length="32" name="CorrelationNum1" not-null="false" type="string" /> <property column="CYC_LOAN" length="22" name="CycLoan" not-null="true" type="boolean" /> <property column="PAGENUM" length="22" name="PageNum" not-null="false" type="integer" /> <property column="SELF_SUPPORT" length="22" name="SelfSupport" type="integer" /> <property column="FIX_PLAN" length="22" name="FixPlan" not-null="false" type="integer" /> <property column="RMSRATETYPE" length="22" name="RmsRateType" not-null="false" type="integer" /> <property column="NORMRATEID" length="22" name="NormId" not-null="false" type="integer" /> <property column="NORMRATE_METHOD" length="22" name="NormMethod" not-null="false" type="integer" /> <property column="NORMRATE_FALG" length="22" name="NormFalg" not-null="false" type="big_decimal" /> <set inverse="true" lazy="false" name="IntrestRate" order-by="RATE_TYPE asc, EFT_DATE desc" > <key column="BID" /> <one-to-many class="FbIntrestRate" /> </set> <set inverse="true" lazy="true" name="SpecialActions" > <key column="BID" /> <one-to-many class="FbSpecialAction" /> </set> <set inverse="true" lazy="true" name="Lawsuits" > <key column="BID" /> <one-to-many class="FbLawsuit" /> </set> <set cascade="delete" inverse="true" lazy="false" name="DiscountNotes" > <key column="BID" /> <one-to-many class="FbDiscountNote" /> </set> <set inverse="true" lazy="true" name="FivelevelLogs" > <key column="BID" /> <one-to-many class="FbFivelevelLog" /> </set> <set inverse="true" lazy="false" name="FbBaoGoods" > <key column="BID" /> <one-to-many class="FbBaoGoods" /> </set> <set inverse="true" lazy="false" name="FbLedgers" > <key column="BID" /> <one-to-many class="FbLedger" /> </set> <map name="Accounts" table="FB_ACCOUNTS" lazy="false" cascade="none" inverse="true" > <key column="BID"/> <index column="ACCOUNT_TYPE" type="string"/> <element column="ACCOUNT_NO" type="string" not-null="false"/> </map> <set cascade="save-update" inverse="true" lazy="false" name="Intentions" > <key column="BID" /> <one-to-many class="FbIntention" /> </set> <set cascade="none" lazy="true" name="SuperContracts" table="FB_SUPER_MAP" > <key column="BID" /> <many-to-many class="FbSuperContract" column="SUPER_BID" /> </set> <!-- <set cascade="none" inverse="true" lazy="false" name="ChargeRates" > <key column="BID" /> <one-to-many class="FbChargeRate" /> </set> --> <set inverse="true" lazy="false" name="Lendings" order-by="BID asc, START_DATE asc" > <key column="BID" /> <one-to-many class="FbLending" /> </set> <set inverse="true" lazy="true" name="Plans" order-by="BID asc, PLAN_DATE asc" > <key column="BID" /> <one-to-many class="FbPlan" /> </set> <set inverse="true" lazy="true" name="ChargeLogs" order-by="BID asc, CHARGE_DATE asc" > <key column="BID" /> <one-to-many class="FbChargeLog" /> </set> </joined-subclass> </class> </hibernate-mapping>
发表评论
-
集成并自定义反转策略类
2012-03-08 13:40 950http://apps.hi.baidu.com/share/ ... -
hibernate分页
2012-02-28 17:07 1147需要一个辅助类,记录总页数,每页显示记录数,当前页,总记 ... -
hibernate强制加载
2012-02-28 16:20 815RetailDD fp = (DD) rst.get(n ... -
hibernate查询后执行了更新
2011-11-25 09:56 5934在项目中遇到利用hiberna ... -
hibernate中的flush
2011-10-13 16:53 961hibernate按照insert,update,----- ... -
joined-subclass
2011-07-26 15:35 1799考虑这样一个继承关系m ... -
Hibernate @Formula
2011-07-26 12:00 1228hibernate 配置文件中写法: <id nam ... -
getHibernateTemplate().execute(new HibernateCallback())方法
2011-05-17 14:31 136491. HibernateCallback是一个接口,该接口只有 ...
相关推荐
本部分将讲解如何配置SessionFactory,包括加载Hibernate配置文件、配置数据库连接、设置方言、连接池等。 4. 持久化类:介绍如何设计符合Hibernate映射规则的Java类,使得这些类的实例能够被映射到数据库表中。 5...
3.7. XML配置文件 3.8. J2EE应用程序服务器的集成 3.8.1. 事务策略配置 3.8.2. JNDI绑定的SessionFactory 3.8.3. 在JTA环境下使用Current Session context (当前session上下文)管理 3.8.4. JMX部署 4. 持久化...
3.1 创建Hibernate的配置文件 3.2 创建持久化类 3.3 创建数据库Schema 3.4 创建对象-关系映射文件 3.4.1 映射文件的文档类型定义(DTD) 3.4.2 把Customer持久化类映射到CUSTOMERS表 3.5 通过...
3.7. XML配置文件 3.8. J2EE应用程序服务器的集成 3.8.1. 事务策略配置 3.8.2. JNDI绑定的SessionFactory 3.8.3. 在JTA环境下使用Current Session context (当前session上下文)管理 3.8.4. JMX部署 4. 持久化...
3.7. XML配置文件 3.8. J2EE应用程序服务器的集成 3.8.1. 事务策略配置 3.8.2. JNDI绑定的SessionFactory 3.8.3. 在JTA环境下使用Current Session context (当前session上下文)管理 3.8.4. JMX部署 4. 持久化...
3.7. XML配置文件 3.8. J2EE应用程序服务器的集成 3.8.1. 事务策略配置 3.8.2. JNDI绑定的SessionFactory 3.8.3. 在JTA环境下使用Current Session context (当前session上下文)管理 3.8.4. JMX部署 4. 持久化...
Hibernate配置 1.2.4. 用Ant构建 1.2.5. 启动和辅助类 1.2.6. 加载并存储对象 1.3. 第二部分 - 关联映射 1.3.1. 映射Person类 1.3.2. 单向Set-based的关联 1.3.3. 使关联工作 1.3.4. 值类型的集合 1.3.5...
1.2.3. Hibernate配置 1.2.4. 用Ant构建 1.2.5. 启动和辅助类 1.2.6. 加载并存储对象 1.3. 第二部分 - 关联映射 1.3.1. 映射Person类 1.3.2. 单向Set-based的关联 1.3.3. 使关联工作 1.3.4. 值类型的集合 ...
XML配置文件 4. 持久化类(Persistent Classes) 4.1. POJO简单示例 4.1.1. 为持久化字段声明访问器(accessors)和是否可变的标志(mutators) 4.1.2. 实现一个默认的构造方法(constructor) 4.1.3. ...
- 配置文件(如 `persistence.xml`),用于设置数据源和 Hibernate 配置。 - **系统配置**:在项目中正确配置 Hibernate 以支持注解,通常包括以下几个步骤: - 在项目的类路径中添加必要的库文件。 - 创建并...
3.1 创建Hibernate的配置文件 3.2 创建持久化类 3.3 创建数据库Schema 3.4 创建对象-关系映射文件 3.4.1 映射文件的文档类型定义(DTD) 3.4.2 把Customer持久化类映射到CUSTOMERS表 3.5 通过...
3.1 创建Hibernate的配置文件 3.2 创建持久化类 3.3 创建数据库Schema 3.4 创建对象-关系映射文件 3.4.1 映射文件的文档类型定义(DTD) 3.4.2 把Customer持久化类映射到CUSTOMERS表 3.5 通过...
3.1 创建Hibernate的配置文件 3.2 创建持久化类 3.3 创建数据库Schema 3.4 创建对象-关系映射文件 3.4.1 映射文件的文档类型定义(DTD) 3.4.2 把Customer持久化类映射到CUSTOMERS表 3.5 通过...
1.2.3. Hibernate配置 1.2.4. 用Ant构建 1.2.5. 启动和辅助类 1.2.6. 加载并存储对象 1.3. 第二部分 - 关联映射 1.3.1. 映射Person类 1.3.2. 单向Set-based的关联 1.3.3. 使关联工作 1.3.4. 值类型的集合 ...
3.7. XML配置文件 3.8. J2EE应用程序服务器的集成 3.8.1. 事务策略配置 3.8.2. JNDI绑定的SessionFactory 3.8.3. JTA和Session的自动绑定 3.8.4. JMX部署 4. 持久化类(Persistent Classes) 4.1. 一个简单的...
2.2.3. Hibernate配置 2.2.4. 用Ant编译 2.2.5. 安装和帮助 2.2.6. 加载并存储对象 2.3. 第二部分 - 关联映射 2.3.1. 映射Person类 2.3.2. 一个单向的Set-based关联 2.3.3. 使关联工作 2.3.4. 值类型的集合...
XML配置文件 4. 持久化类(Persistent Classes) 4.1. POJO简单示例 4.1.1. 为持久化字段声明访问器(accessors)和是否可变的标志(mutators) 4.1.2. 实现一个默认的构造方法(constructor) 4.1.3. ...
3.7. XML配置文件 3.8. J2EE应用程序服务器的集成 3.8.1. 事务策略配置 3.8.2. JNDI绑定的SessionFactory 3.8.3. JTA和Session的自动绑定 3.8.4. JMX部署 4. 持久化类(Persistent Classes) 4.1. 一个简单的...