-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Why createQuery.list work, but .iterator does not...
PostPosted: Fri Mar 12, 2004 6:17 pm 
Newbie

Joined: Mon Nov 10, 2003 2:48 am
Posts: 8
Location: GE Medical Systems
Hello,

I am attempting the following:
Code:
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
      part.setParticipantname("ACCSF");
      //sess.createQuery("select TCx1PtsiteT as ptSite where ptSite.")

      Iterator it = null;
      //java.util.List lst = null;
      try {
        it = sess.createQuery(
            "select patient from TCx1PatientT as patient join patient.site as TCx1PtsiteT join TCx1PtsiteT.tcxAdmDisTs as TCx1AdmdisT where TCx1PtsiteT.participantId =:partId and TCx1AdmdisT.dischdt between :datebeg and :dateend")
            .setParameter("partId", "ACCSF")
            .setParameter("datebeg", sdf.parse("01/01/2002"))
            .setParameter("dateend", sdf.parse("04/28/2003"))
            .iterate();
        //it = lst.iterator();
        while(it.hasNext()){
          Object nxt = it.next();
          JXPathContext ctx = JXPathContext.newContext(nxt);
          //System.out.println( getXPathCount(ctx, "site/tcxAdmDisTs"));
          System.out.println(ctx.getValue("patlname"));
        }
      }
      catch (ParseException ex1) {
      }
      catch (HibernateException ex1) {
      }

Which generates a HibernateException:
could not load: [com.ge.med.registries.crux.hibernate.TCx1PatientT#1]

But the following works:
Code:
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
      part.setParticipantname("ACCSF");
      //sess.createQuery("select TCx1PtsiteT as ptSite where ptSite.")

      Iterator it = null;
      java.util.List lst = null;
      try {
        lst = sess.createQuery(
            "select patient from TCx1PatientT as patient join patient.site as TCx1PtsiteT join TCx1PtsiteT.tcxAdmDisTs as TCx1AdmdisT where TCx1PtsiteT.participantId =:partId and TCx1AdmdisT.dischdt between :datebeg and :dateend")
            .setParameter("partId", "ACCSF")
            .setParameter("datebeg", sdf.parse("01/01/2002"))
            .setParameter("dateend", sdf.parse("04/28/2003"))
            .list();
        it = lst.iterator();
        while(it.hasNext()){
          Object nxt = it.next();
          JXPathContext ctx = JXPathContext.newContext(nxt);
          //System.out.println( getXPathCount(ctx, "site/tcxAdmDisTs"));
          System.out.println(ctx.getValue("patlname"));
        }
      }
      catch (ParseException ex1) {
      }
      catch (HibernateException ex1) {
      }

Why am I getting the above exception?
How can I do lazy collections on a query?
Does createquery.list() return a lazy collection?
Is it possible to do a lazy collection on a query?


Here is my hbm file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
   <class name="com.ge.med.registries.crux.hibernate.TCx1ParticipantM" table="T_CX1_Participant_M">
      <id name="primary" column="ParticipantID" type="java.lang.String">
         <generator class="assigned"/>
      </id>
      <property name="participantname" column="ParticipantName" type="java.lang.String" length="100"/>
      <property name="zippassword" column="ZipPassword" type="java.lang.String" length="50"/>
      <property name="registrytype" column="RegistryType" type="java.lang.String" length="50" not-null="true"/>
      <property name="siteid" column="SiteID" type="java.lang.Integer" length="10" not-null="true"/>
      <property name="surggrpid" column="SurgGrpID" type="java.lang.Integer" length="10" not-null="true"/>
      <bag name="ptSites" inverse="true" lazy="true" cascade="all" table="T_CX1_PtSite_T">
         <key column="ParticipantID"/>
         <one-to-many class="com.ge.med.registries.crux.hibernate.TCx1PtsiteT"/>
      </bag>
   </class>
   <class name="com.ge.med.registries.crux.hibernate.TCx1PatientT" table="T_CX1_Patient_T">
      <id name="primary" column="PatID" type="java.lang.Long">
         <generator class="native"/>
      </id>
      <property name="patfname" column="PatFName" type="java.lang.String" length="20"/>
      <property name="patlname" column="PatLName" type="java.lang.String" length="25"/>
      <property name="patminit" column="PatMInit" type="java.lang.String" length="1"/>
      <property name="gender" column="Gender" type="java.lang.Integer" length="3"/>
      <property name="dob" column="DOB" type="java.util.Date" length="16"/>
      <property name="ssn" column="SSN" type="java.lang.String" length="11"/>
      <property name="medrecn" column="MedRecN" type="java.lang.String" length="31"/>
      <property name="patphone" column="PatPhone" type="java.lang.String" length="14"/>
      <property name="pataddr" column="PatAddr" type="java.lang.String" length="30"/>
      <property name="patcity" column="PatCity" type="java.lang.String" length="25"/>
      <property name="patzip" column="PatZIP" type="java.lang.String" length="10"/>
      <property name="patstate" column="PatState" type="java.lang.String" length="2"/>
      <property name="submissionapproval" column="SubmissionApproval" type="java.lang.String" length="1"/>
      <bag name="site" inverse="true" lazy="true" table="T_CX1_PtSite_T" cascade="all">
         <key column="PatID"/>
         <one-to-many class="com.ge.med.registries.crux.hibernate.TCx1PtsiteT"/>
      </bag>
   </class>
   <class name="com.ge.med.registries.crux.hibernate.TCx1PtsiteT" table="T_CX1_PtSite_T">
      <id name="primary" column="PatSiteID" type="java.lang.Long">
         <generator class="native"/>
      </id>
      <many-to-one name="patId" column="PatID" class="com.ge.med.registries.crux.hibernate.TCx1PatientT" not-null="true"/>
      <many-to-one name="participantId" column="ParticipantID" class="com.ge.med.registries.crux.hibernate.TCx1ParticipantM" not-null="true"/>
      <bag name="tcxAdmDisTs" lazy="true" inverse="true" cascade="all" table="T_CX1_AdmDis_T">
         <key column="PatSiteID"/>
         <one-to-many class="com.ge.med.registries.crux.hibernate.TCx1AdmdisT"/>
      </bag>
      <one-to-one name="stsPatient" class="com.ge.med.registries.sts_241.hibernate.TS252PatientT" cascade="delete"/>
   </class>
   <class name="com.ge.med.registries.crux.hibernate.TCx1AdmdisT" table="T_CX1_AdmDis_T">
      <id name="primary" column="AdmissionID" type="java.lang.Long">
         <generator class="native"/>
      </id>
      <property name="admitdt" column="AdmitDt" type="java.util.Date" length="23" not-null="true"/>
      <property name="dischdt" column="DischDt" type="java.util.Date" length="23"/>
      <one-to-one name="sts241AdmDis" class="com.ge.med.registries.sts_241.hibernate.TS252AdmissionT" cascade="delete"/>
      <one-to-one name="stsDischarge" class="com.ge.med.registries.sts_241.hibernate.TS252DischargeT" cascade="delete"/>
      <many-to-one name="tcx1ptsitet" column="PatSiteID" class="com.ge.med.registries.crux.hibernate.TCx1PtsiteT" not-null="true"/>
      <bag name="labVisit" inverse="true" lazy="true" cascade="all">
         <key column="AdmissionID"/>
         <one-to-many class="com.ge.med.registries.crux.hibernate.TCx1LabvisitT"/>
      </bag>
   </class>
   <class name="com.ge.med.registries.sts_241.hibernate.TS252AdmissionT" table="T_S252_Admission_T">
      <id name="primary" column="AdmissionID" type="java.lang.Long">
         <generator class="assigned"/>
      </id>
      <property name="hospname" column="HospName" type="java.lang.String" length="100"/>
      <property name="hospstat" column="HospStat" type="java.lang.String" length="2"/>
      <property name="hospzip" column="HospZIP" type="java.lang.String" length="10"/>
      <property name="payor" column="Payor" type="java.lang.String" length="50"/>
      <property name="sameday" column="SameDay" type="java.lang.Integer" length="3"/>
      <property name="costlink" column="CostLink" type="java.lang.String" length="20"/>
      <property name="ststlink" column="STSTLink" type="java.lang.String" length="5"/>
      <property name="losad" column="LOSAD" type="java.lang.Short" length="5"/>
      <property name="othhoscs" column="OthHosCS" type="java.lang.Integer" length="3"/>
      <property name="tranfrom" column="TranFrom" type="java.lang.Integer" length="3"/>
      <property name="datavrsn" column="DataVrsn" type="java.lang.String" length="8"/>
      <one-to-one name="cxAdmDis" class="com.ge.med.registries.crux.hibernate.TCx1AdmdisT"/>
   </class>
   <class name="com.ge.med.registries.sts_241.hibernate.TS252PatientT" table="T_S252_Patient_T">
      <id name="primary" column="PatSiteID" type="java.lang.Long">
         <generator class="assigned"/>
      </id>
      <property name="race" column="Race" type="java.lang.Short" length="5"/>
      <one-to-one name="ptSite" class="com.ge.med.registries.crux.hibernate.TCx1PtsiteT"/>
   </class>
   <class name="com.ge.med.registries.sts_241.hibernate.TS252DischargeT" table="T_S252_Discharge_T">
      <id name="primary" column="AdmissionID" type="java.lang.Long">
         <generator class="assigned"/>
      </id>
      <property name="dcace" column="DCACE" type="java.lang.Integer" length="3"/>
      <property name="dcbeta" column="DCBeta" type="java.lang.Integer" length="3"/>
      <property name="dclipid" column="DCLipid" type="java.lang.Integer" length="3"/>
      <property name="dcantplt" column="DCAntPlt" type="java.lang.Integer" length="3"/>
      <property name="disloctn" column="DisLoctn" type="java.lang.Integer" length="3"/>
      <property name="dclipmt" column="DCLipMT" type="java.lang.Integer" length="3"/>
      <property name="dccoum" column="DCCoum" type="java.lang.Integer" length="3"/>
      <property name="cardref" column="CardRef" type="java.lang.Integer" length="3"/>
      <property name="smokcoun" column="SmokCoun" type="java.lang.Integer" length="3"/>
      <property name="dcasa" column="DCASA" type="java.lang.Integer" length="3"/>
      <property name="dcaarmn" column="DCAArMN" type="java.lang.Integer" length="3"/>
      <property name="dcadp" column="DCADP" type="java.lang.Integer" length="3"/>
      <property name="dcaarhy" column="DCAArhy" type="java.lang.Integer" length="3"/>
      <one-to-one name="cxAdmDis" class="com.ge.med.registries.crux.hibernate.TCx1AdmdisT"/>
   </class>
   <class name="com.ge.med.registries.crux.hibernate.TCx1LabvisitT" table="T_CX1_LabVisit_T">
      <id name="primary" column="ProcID" type="java.lang.Long">
         <generator class="native"/>
      </id>
      <property name="procdt" column="ProcDt" type="java.util.Date" length="16"/>
      <property name="surgdt" column="SurgDt" type="java.util.Date" length="16"/>
      <many-to-one name="admissionId" column="AdmissionID" class="com.ge.med.registries.crux.hibernate.TCx1AdmdisT" not-null="true"/>
      <one-to-one name="stsProcedure" class="com.ge.med.registries.sts_241.hibernate.TS252ProcedureT"/>
   </class>
   <class name="com.ge.med.registries.sts_241.hibernate.TS252ProcedureT" table="T_S252_Procedure_T">
      <id name="primary" column="ProcID" type="java.lang.Long">
         <generator class="assigned"/>
      </id>
      <property name="refcard" column="RefCard" type="java.lang.String" length="255"/>
      <property name="rccity" column="RCCity" type="java.lang.String" length="25"/>
      <property name="rcphone" column="RCPhone" type="java.lang.String" length="14"/>
      <property name="refphys" column="RefPhys" type="java.lang.String" length="255"/>
      <property name="rpcity" column="RPCity" type="java.lang.String" length="25"/>
      <property name="rpphone" column="RPPhone" type="java.lang.String" length="14"/>
      <property name="losas" column="LOSAS" type="java.lang.Short" length="5"/>
      <property name="lossd" column="LOSSD" type="java.lang.Short" length="5"/>
      <property name="reccomp" column="RecComp" type="java.lang.Integer" length="3"/>
      <one-to-one name="cxLabvisit" class="com.ge.med.registries.crux.hibernate.TCx1LabvisitT"/>
      <one-to-one name="stsRiskfactors" class="com.ge.med.registries.sts_241.hibernate.TS252RiskfactorsT"/>
      <one-to-one name="stsCvintervetions" class="com.ge.med.registries.sts_241.hibernate.TS252CvinterventionsT"/>
      <one-to-one name="stsCardiacstatus" class="com.ge.med.registries.sts_241.hibernate.TS252CardiacstatusT"/>
      <one-to-one name="stsDiagnosis" class="com.ge.med.registries.sts_241.hibernate.TS252DiagnosisT"/>
      <one-to-one name="stsMedications" class="com.ge.med.registries.sts_241.hibernate.TS252MedicationsT"/>
      <one-to-one name="stsPostoperative" class="com.ge.med.registries.sts_241.hibernate.TS252PostoperativeT"/>
   </class>
   <class name="com.ge.med.registries.sts_241.hibernate.TS252RiskfactorsT" table="T_S252_RiskFactors_T">
      <id name="primary" column="ProcID" type="java.lang.Long">
         <generator class="assigned"/>
      </id>
      <property name="cvawhen" column="CVAWhen" type="java.lang.Integer" length="3"/>
      <property name="diabetes" column="Diabetes" type="java.lang.Integer" length="3"/>
      <property name="renfail" column="RenFail" type="java.lang.Integer" length="3"/>
      <property name="smoker" column="Smoker" type="java.lang.Integer" length="3"/>
      <property name="weightkg" column="WeightKg" type="java.lang.Float" length="53"/>
      <property name="heightcm" column="HeightCm" type="java.lang.Float" length="53"/>
      <property name="immsupp" column="ImmSupp" type="java.lang.Integer" length="3"/>
      <property name="pvd" column="PVD" type="java.lang.Integer" length="3"/>
      <property name="cvd" column="CVD" type="java.lang.Integer" length="3"/>
      <property name="chrlungd" column="ChrLungD" type="java.lang.Integer" length="3"/>
      <property name="smokcurr" column="SmokCurr" type="java.lang.Integer" length="3"/>
      <property name="infendo" column="InfEndo" type="java.lang.Integer" length="3"/>
      <property name="fhcad" column="FHCAD" type="java.lang.Integer" length="3"/>
      <property name="diabctrl" column="DiabCtrl" type="java.lang.Integer" length="3"/>
      <property name="cva" column="CVA" type="java.lang.Integer" length="3"/>
      <property name="hyprchol" column="Hyprchol" type="java.lang.Integer" length="3"/>
      <property name="creatlst" column="CreatLst" type="java.lang.Float" length="53"/>
      <property name="dialysis" column="Dialysis" type="java.lang.Integer" length="3"/>
      <property name="infendty" column="InfEndTy" type="java.lang.Integer" length="3"/>
      <property name="cvdtype" column="CVDType" type="java.lang.Integer" length="3"/>
      <property name="hypertn" column="Hypertn" type="java.lang.Integer" length="3"/>
      <property name="morbobes" column="MorbObes" type="java.lang.Short" length="5"/>
      <property name="riskfact" column="RiskFact" type="java.lang.Integer" length="3"/>
      <property name="serchol" column="SerChol" type="java.lang.Short" length="5"/>
      <property name="smokpkyr" column="SmokPkYr" type="java.lang.Short" length="5"/>
      <one-to-one name="stsProcedure" class="com.ge.med.registries.sts_241.hibernate.TS252ProcedureT"/>
   </class>
   <class name="com.ge.med.registries.sts_241.hibernate.TS252CvinterventionsT" table="T_S252_CVInterventions_T">
      <id name="primary" column="ProcID" type="java.lang.Long">
         <generator class="assigned"/>
      </id>
      <property name="prcvint" column="PrCVInt" type="java.lang.Integer" length="3"/>
      <property name="procpace" column="PrOCPace" type="java.lang.Integer" length="3"/>
      <property name="procaicd" column="PrOCAICD" type="java.lang.Integer" length="3"/>
      <property name="pocpacet" column="POCPaceT" type="java.lang.Integer" length="3"/>
      <property name="pocpciin" column="POCPCIIn" type="java.lang.Integer" length="3"/>
      <property name="prcab" column="PrCAB" type="java.lang.Integer" length="3"/>
      <property name="prvalve" column="PrValve" type="java.lang.Integer" length="3"/>
      <property name="pocpci" column="POCPCI" type="java.lang.Integer" length="3"/>
      <property name="prcbnum" column="PrCBNum" type="java.lang.Integer" length="3"/>
      <property name="prothcar" column="PrOthCar" type="java.lang.Integer" length="3"/>
      <property name="prnsstnt" column="PrNSStnt" type="java.lang.Integer" length="3"/>
      <property name="prnsball" column="PrNSBall" type="java.lang.Integer" length="3"/>
      <property name="prcnnum" column="PrCNNum" type="java.lang.Integer" length="3"/>
      <property name="thrmblys" column="Thrmblys" type="java.lang.Integer" length="3"/>
      <property name="thrintvl" column="ThrIntvl" type="java.lang.Integer" length="3"/>
      <property name="prptca" column="PrPTCA" type="java.lang.Integer" length="3"/>
      <property name="prptintv" column="PrPTIntv" type="java.lang.Integer" length="3"/>
      <property name="stntintv" column="StntIntv" type="java.lang.Integer" length="3"/>
      <property name="incidenc" column="Incidenc" type="java.lang.Integer" length="3"/>
      <property name="prcvdate" column="PrCVDate" type="java.util.Date" length="16"/>
      <property name="prcvintv" column="PrCVIntv" type="java.lang.Float" length="5"/>
      <property name="prmicab" column="PrMICAB" type="java.lang.Integer" length="3"/>
      <property name="prmival" column="PrMIVal" type="java.lang.Integer" length="3"/>
      <property name="prmivala" column="PrMIValA" type="java.lang.Integer" length="3"/>
      <property name="prmivalm" column="PrMIValM" type="java.lang.Integer" length="3"/>
      <property name="prmivalp" column="PrMIValP" type="java.lang.Integer" length="3"/>
      <property name="prmivalt" column="PrMIValT" type="java.lang.Integer" length="3"/>
      <property name="prnonsur" column="PrNonSur" type="java.lang.Integer" length="3"/>
      <property name="prnsathr" column="PrNSAthr" type="java.lang.Integer" length="3"/>
      <property name="prnsbala" column="PrNSBalA" type="java.lang.Integer" length="3"/>
      <property name="prnsbalm" column="PrNSBalM" type="java.lang.Integer" length="3"/>
      <property name="prnsbalp" column="PrNSBalP" type="java.lang.Integer" length="3"/>
      <property name="prnsbalt" column="PrNSBalT" type="java.lang.Integer" length="3"/>
      <property name="prnsptca" column="PrNSPTCA" type="java.lang.Integer" length="3"/>
      <property name="prnsthrm" column="PrNSThrm" type="java.lang.Integer" length="3"/>
      <property name="procasd" column="PrOCASD" type="java.lang.Integer" length="3"/>
      <property name="procbtst" column="PrOCBtst" type="java.lang.Integer" length="3"/>
      <property name="proccong" column="PrOCCong" type="java.lang.Integer" length="3"/>
      <property name="proclva" column="PrOCLVA" type="java.lang.Integer" length="3"/>
      <property name="procothr" column="PrOCOthr" type="java.lang.Integer" length="3"/>
      <property name="proctran" column="PrOCTran" type="java.lang.Integer" length="3"/>
      <property name="proctrau" column="PrOCTrau" type="java.lang.Integer" length="3"/>
      <property name="procvsd" column="PrOCVSD" type="java.lang.Integer" length="3"/>
      <property name="pronabd" column="PrONAbd" type="java.lang.Integer" length="3"/>
      <property name="pronaoan" column="PrONAoAn" type="java.lang.Integer" length="3"/>
      <property name="pronarch" column="PrONArch" type="java.lang.Integer" length="3"/>
      <property name="pronasc" column="PrONAsc" type="java.lang.Integer" length="3"/>
      <property name="pronceax" column="PrONCeax" type="java.lang.Integer" length="3"/>
      <property name="prondesc" column="PrONDesc" type="java.lang.Integer" length="3"/>
      <property name="pronthab" column="PrONThAb" type="java.lang.Integer" length="3"/>
      <property name="pronthor" column="PrONThor" type="java.lang.Integer" length="3"/>
      <property name="pronvasc" column="PrONVasc" type="java.lang.Integer" length="3"/>
      <property name="prothnon" column="PrOthNon" type="java.lang.Integer" length="3"/>
      <property name="prptnumb" column="PrPTNumb" type="java.lang.Integer" length="3"/>
      <property name="prptsmad" column="PrPTSmAd" type="java.lang.Integer" length="3"/>
      <property name="prptstat" column="PrPTStat" type="java.lang.Integer" length="3"/>
      <property name="prvrepl" column="PrVRepl" type="java.lang.Integer" length="3"/>
      <property name="prvrepla" column="PrVReplA" type="java.lang.Integer" length="3"/>
      <property name="prvreplm" column="PrVReplM" type="java.lang.Integer" length="3"/>
      <property name="prvreplp" column="PrVReplP" type="java.lang.Integer" length="3"/>
      <property name="prvreplt" column="PrVReplT" type="java.lang.Integer" length="3"/>
      <property name="prvrpr" column="PrVRpr" type="java.lang.Integer" length="3"/>
      <property name="prvrpra" column="PrVRprA" type="java.lang.Integer" length="3"/>
      <property name="prvrprm" column="PrVRprM" type="java.lang.Integer" length="3"/>
      <property name="prvrprp" column="PrVRprP" type="java.lang.Integer" length="3"/>
      <property name="prvrprt" column="PrVRprT" type="java.lang.Integer" length="3"/>
      <property name="thragnt" column="ThrAgnt" type="java.lang.Integer" length="3"/>
      <one-to-one name="stsProcedure" class="com.ge.med.registries.sts_241.hibernate.TS252ProcedureT"/>
   </class>
   <class name="com.ge.med.registries.sts_241.hibernate.TS252CardiacstatusT" table="T_S252_CardiacStatus_T">
      <id name="primary" column="ProcID" type="java.lang.Long">
         <generator class="assigned"/>
      </id>
      <property name="chf" column="CHF" type="java.lang.Integer" length="3"/>
      <property name="mi" column="MI" type="java.lang.Integer" length="3"/>
      <property name="miwhen" column="MIWhen" type="java.lang.Integer" length="3"/>
      <property name="angina" column="Angina" type="java.lang.Integer" length="3"/>
      <property name="angtype" column="AngType" type="java.lang.Integer" length="3"/>
      <property name="carshock" column="CarShock" type="java.lang.Integer" length="3"/>
      <property name="resusc" column="Resusc" type="java.lang.Integer" length="3"/>
      <property name="arrhyth" column="Arrhyth" type="java.lang.Integer" length="3"/>
      <property name="classccs" column="ClassCCS" type="java.lang.Integer" length="3"/>
      <property name="classnyh" column="ClassNYH" type="java.lang.Integer" length="3"/>
      <property name="carshtyp" column="CarShTyp" type="java.lang.Integer" length="3"/>
      <property name="arrhytyp" column="ArrhyTyp" type="java.lang.Integer" length="3"/>
      <property name="angunstt" column="AngUnstT" type="java.lang.Integer" length="3"/>
      <property name="arrhyacu" column="ArrhyAcu" type="java.lang.Integer" length="3"/>
      <property name="arrhyaf" column="ArrhyAF" type="java.lang.Integer" length="3"/>
      <property name="arrhyavb" column="ArrhyAVB" type="java.lang.Integer" length="3"/>
      <property name="arrhychb" column="ArrhyCHB" type="java.lang.Integer" length="3"/>
      <property name="arrhychr" column="ArrhyChr" type="java.lang.Integer" length="3"/>
      <property name="arrhyven" column="ArrhyVen" type="java.lang.Integer" length="3"/>
      <property name="cardmeg" column="Cardmeg" type="java.lang.Integer" length="3"/>
      <property name="mitype" column="MIType" type="java.lang.Integer" length="3"/>
      <one-to-one name="stsProcedure" class="com.ge.med.registries.sts_241.hibernate.TS252ProcedureT"/>
   </class>
   <class name="com.ge.med.registries.sts_241.hibernate.TS252DiagnosisT" table="T_S252_Diagnosis_T">
      <id name="primary" column="ProcID" type="java.lang.Long">
         <generator class="native"/>
      </id>
      <property name="dxaoan" column="DxAoAn" type="java.lang.Integer" length="3"/>
      <property name="dxcad" column="DxCAD" type="java.lang.Integer" length="3"/>
      <property name="dxcongen" column="DxCongen" type="java.lang.Integer" length="3"/>
      <property name="dxihss" column="DxIHSS" type="java.lang.Integer" length="3"/>
      <property name="dxlva" column="DxLVA" type="java.lang.Integer" length="3"/>
      <property name="dxvalve" column="DxValve" type="java.lang.Integer" length="3"/>
      <one-to-one name="stsProcedure" class="com.ge.med.registries.sts_241.hibernate.TS252ProcedureT"/>
   </class>
   <class name="com.ge.med.registries.sts_241.hibernate.TS252MedicationsT" table="T_S252_Medications_T">
      <id name="primary" column="ProcID" type="java.lang.Long">
         <generator class="native"/>
      </id>
      <property name="medacmn" column="MedACMN" type="java.lang.Integer" length="3"/>
      <property name="medlipmn" column="MedLipMN" type="java.lang.Integer" length="3"/>
      <property name="medadpi" column="MedADPI" type="java.lang.Integer" length="3"/>
      <property name="medcoum" column="MedCoum" type="java.lang.Integer" length="3"/>
      <property name="medgp" column="MedGP" type="java.lang.Integer" length="3" not-null="true"/>
      <property name="medgpmn" column="MedGPMN" type="java.lang.Integer" length="3"/>
      <property name="meddig" column="MedDig" type="java.lang.Integer" length="3"/>
      <property name="medbeta" column="MedBeta" type="java.lang.Integer" length="3"/>
      <property name="mednitiv" column="MedNitIV" type="java.lang.Integer" length="3"/>
      <property name="medacoag" column="MedACoag" type="java.lang.Integer" length="3"/>
      <property name="meddiur" column="MedDiur" type="java.lang.Integer" length="3"/>
      <property name="medinotr" column="MedInotr" type="java.lang.Integer" length="3"/>
      <property name="medster" column="MedSter" type="java.lang.Integer" length="3"/>
      <property name="medasa" column="MedASA" type="java.lang.Integer" length="3"/>
      <property name="medacei" column="MedACEI" type="java.lang.Integer" length="3"/>
      <property name="medaplt" column="MedAPlt" type="java.lang.Integer" length="3"/>
      <property name="medlipid" column="MedLipid" type="java.lang.Integer" length="3"/>
      <property name="medaarhy" column="MedAArhy" type="java.lang.Integer" length="3"/>
      <property name="medcaant" column="MedCaAnt" type="java.lang.Integer" length="3"/>
      <property name="mednitpo" column="MedNitPO" type="java.lang.Integer" length="3"/>
      <property name="medpreop" column="MedPreop" type="java.lang.Integer" length="3"/>
      <one-to-one name="stsProcedure" class="com.ge.med.registries.sts_241.hibernate.TS252ProcedureT"/>
   </class>
   <class name="com.ge.med.registries.sts_241.hibernate.TS252PostoperativeT" table="T_S252_Postoperative_T">
      <id name="primary" column="ProcID" type="java.lang.Long">
         <generator class="assigned"/>
      </id>
      <property name="bdrbcu" column="BdRBCU" type="java.lang.Integer" length="3"/>
      <property name="bdffpu" column="BdFFPU" type="java.lang.Integer" length="3"/>
      <property name="bdcryou" column="BdCryoU" type="java.lang.Integer" length="3"/>
      <property name="bdplatu" column="BdPlatU" type="java.lang.Integer" length="3"/>
      <property name="venthrsi" column="VentHrsI" type="java.lang.Float" length="53"/>
      <property name="reintub" column="ReIntub" type="java.lang.Integer" length="3"/>
      <property name="venthrs" column="VentHrs" type="java.lang.Float" length="53"/>
      <property name="bldprod" column="BldProd" type="java.lang.Integer" length="3"/>
      <property name="venthrsa" column="VentHrsA" type="java.lang.Float" length="53"/>
      <property name="extubor" column="ExtubOR" type="java.lang.Integer" length="3"/>
      <property name="bldcryo" column="BldCryo" type="java.lang.Integer" length="3"/>
      <property name="bldffp" column="BldFFP" type="java.lang.Integer" length="3"/>
      <property name="bldplate" column="BldPlate" type="java.lang.Integer" length="3"/>
      <property name="bldrbc" column="BldRBC" type="java.lang.Integer" length="3"/>
      <property name="drgnum" column="DRGNum" type="java.lang.String" length="3"/>
      <property name="posangio" column="POSAngio" type="java.lang.Integer" length="3"/>
      <property name="posdobut" column="POSDobut" type="java.lang.Integer" length="3"/>
      <property name="posdoppl" column="POSDoppl" type="java.lang.Integer" length="3"/>
      <property name="posother" column="POSOther" type="java.lang.Integer" length="3"/>
      <property name="posspcfy" column="POSSpcfy" type="java.lang.String" length="25"/>
      <property name="postee" column="POSTEE" type="java.lang.Integer" length="3"/>
      <property name="postudy" column="POStudy" type="java.lang.Integer" length="3"/>
      <property name="icuinhrs" column="ICUInHrs" type="java.lang.Float" length="5"/>
      <property name="icureadm" column="ICUReadm" type="java.lang.Integer" length="3"/>
      <property name="tothricu" column="TotHrICU" type="java.lang.Float" length="6"/>
      <property name="icuadhrs" column="ICUAdHrs" type="java.lang.Float" length="5"/>
      <property name="icuvisit" column="ICUVisit" type="java.lang.Integer" length="3"/>
      <one-to-one name="stsProcedure" class="com.ge.med.registries.sts_241.hibernate.TS252ProcedureT"/>
   </class>
</hibernate-mapping>



Thanks in advance!!!
-Allen Pauna


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 13, 2004 8:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Show the full exception.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.