@@ -1009,7 +1009,7 @@ def __repr__(self):
10091009 % (self .SpatialReferenceID , self .SRSCode , self .SRSName , self .SRSDescription , self .SRSLink )
10101010
10111011
1012- class Specimens (Base ):
1012+ class Specimens (SamplingFeatures ):
10131013 __tablename__ = u'specimens'
10141014 __table_args__ = {u'schema' : 'odm2' }
10151015
@@ -1019,7 +1019,7 @@ class Specimens(Base):
10191019 SpecimenMediumCV = Column ('specimenmediumcv' , ForeignKey (CVMediumType .Name ), nullable = False , index = True )
10201020 IsFieldSpecimen = Column ('isfieldspecimen' , Boolean , nullable = False )
10211021
1022- SamplingFeatureObj = relationship (SamplingFeatures )
1022+ # SamplingFeatureObj = relationship(SamplingFeatures)
10231023
10241024
10251025class SpatialOffsets (Base ):
@@ -1041,7 +1041,7 @@ class SpatialOffsets(Base):
10411041 Offset3UnitObj = relationship (Units , primaryjoin = 'SpatialOffsets.Offset3UnitID == Units.UnitsID' )
10421042
10431043
1044- class Sites (Base ):
1044+ class Sites (SamplingFeatures ):
10451045 __tablename__ = u'sites'
10461046 __table_args__ = {u'schema' : 'odm2' }
10471047
@@ -1054,7 +1054,7 @@ class Sites(Base):
10541054 Longitude = Column ('longitude' , Float (53 ), nullable = False )
10551055
10561056 SpatialReferenceObj = relationship (SpatialReferences )
1057- SamplingFeatureObj = relationship (SamplingFeatures )
1057+ # SamplingFeatureObj = relationship(SamplingFeatures)
10581058
10591059 def __repr__ (self ):
10601060 return "<Sites('%s', '%s', '%s', '%s', '%s', '%s', '%s')>" \
@@ -1758,7 +1758,7 @@ class RelatedResults(Base):
17581758# ################################################################################
17591759
17601760
1761- class PointCoverageResults (Base ):
1761+ class PointCoverageResults (Results ):
17621762 __tablename__ = u'pointcoverageresults'
17631763 __table_args__ = {u'schema' : 'odm2' }
17641764
@@ -1779,10 +1779,10 @@ class PointCoverageResults(Base):
17791779 YUnitObj = relationship (Units , primaryjoin = 'PointCoverageResults.IntendedYSpacingUnitsID == Units.UnitsID' )
17801780 SpatialReferenceObj = relationship (SpatialReferences )
17811781 ZUnitObj = relationship (Units , primaryjoin = 'PointCoverageResults.ZLocationUnitsID == Units.UnitsID' )
1782- ResultObj = relationship (Results , primaryjoin = 'PointCoverageResults.ResultID == Results.ResultID' )
1782+ # ResultObj = relationship(Results, primaryjoin='PointCoverageResults.ResultID == Results.ResultID')
17831783
17841784
1785- class ProfileResults (Base ):
1785+ class ProfileResults (Results ):
17861786 __tablename__ = u'profileresults'
17871787 __table_args__ = {u'schema' : 'odm2' }
17881788
@@ -1804,10 +1804,10 @@ class ProfileResults(Base):
18041804 SpatialReferenceObj = relationship (SpatialReferences )
18051805 XUnitObj = relationship (Units , primaryjoin = 'ProfileResults.XLocationUnitsID == Units.UnitsID' )
18061806 YUnitObj = relationship (Units , primaryjoin = 'ProfileResults.YLocationUnitsID == Units.UnitsID' )
1807- ResultObj = relationship (Results , primaryjoin = 'ProfileResults.ResultID == Results.ResultID' )
1807+ # ResultObj = relationship(Results, primaryjoin='ProfileResults.ResultID == Results.ResultID')
18081808
18091809
1810- class CategoricalResults (Base ):
1810+ class CategoricalResults (Results ):
18111811 __tablename__ = u'categoricalresults'
18121812 __table_args__ = {u'schema' : 'odm2' }
18131813
@@ -1822,10 +1822,10 @@ class CategoricalResults(Base):
18221822 QualityCodeCV = Column ('qualitycodecv' , ForeignKey (CVQualityCode .Name ), nullable = False , index = True )
18231823
18241824 SpatialReferenceObj = relationship (SpatialReferences )
1825- ResultObj = relationship (Results , primaryjoin = 'CategoricalResults.ResultID == Results.ResultID' )
1825+ # ResultObj = relationship(Results, primaryjoin='CategoricalResults.ResultID == Results.ResultID')
18261826
18271827
1828- class TransectResults (Base ):
1828+ class TransectResults (Results ):
18291829 __tablename__ = u'transectresults'
18301830 __table_args__ = {u'schema' : 'odm2' }
18311831
@@ -1844,10 +1844,10 @@ class TransectResults(Base):
18441844 TransectUnitObj = relationship (Units , primaryjoin = 'TransectResults.IntendedTransectSpacingUnitsID == Units.UnitsID' )
18451845 SpatialReferenceObj = relationship (SpatialReferences )
18461846 ZUnitObj = relationship (Units , primaryjoin = 'TransectResults.ZLocationUnitsID == Units.UnitsID' )
1847- ResultObj = relationship (Results , primaryjoin = 'TransectResults.ResultID == Results.ResultID' )
1847+ # ResultObj = relationship(Results, primaryjoin='TransectResults.ResultID == Results.ResultID')
18481848
18491849
1850- class SpectraResults (Base ):
1850+ class SpectraResults (Results ):
18511851 __tablename__ = u'spectraresults'
18521852 __table_args__ = {u'schema' : 'odm2' }
18531853
@@ -1869,10 +1869,10 @@ class SpectraResults(Base):
18691869 XUnitObj = relationship (Units , primaryjoin = 'SpectraResults.XLocationUnitsID == Units.UnitsID' )
18701870 YUnitObj = relationship (Units , primaryjoin = 'SpectraResults.YLocationUnitsID == Units.UnitsID' )
18711871 ZUnitObj = relationship (Units , primaryjoin = 'SpectraResults.ZLocationUnitsID == Units.UnitsID' )
1872- ResultObj = relationship (Results , primaryjoin = 'SpectraResults.ResultID == Results.ResultID' )
1872+ # ResultObj = relationship(Results, primaryjoin='SpectraResults.ResultID == Results.ResultID')
18731873
18741874
1875- class TimeSeriesResults (Base ):
1875+ class TimeSeriesResults (Results ):
18761876 __tablename__ = u'timeseriesresults'
18771877 __table_args__ = {u'schema' : 'odm2' }
18781878
@@ -1889,14 +1889,14 @@ class TimeSeriesResults(Base):
18891889 AggregationStatisticCV = Column ('aggregationstatisticcv' , ForeignKey (CVAggregationStatistic .Name ),
18901890 nullable = False , index = True )
18911891
1892- ResultObj = relationship (Results )
1892+ # ResultObj = relationship(Results)
18931893 IntendedTimeSpacingUnitsObj = relationship (Units ,
18941894 primaryjoin = 'TimeSeriesResults.IntendedTimeSpacingUnitsID == Units.UnitsID' )
18951895 SpatialReferenceObj = relationship (SpatialReferences )
18961896 XLocationUnitsObj = relationship (Units , primaryjoin = 'TimeSeriesResults.XLocationUnitsID == Units.UnitsID' )
18971897 YLocationUnitsObj = relationship (Units , primaryjoin = 'TimeSeriesResults.YLocationUnitsID == Units.UnitsID' )
18981898 ZLocationUnitsObj = relationship (Units , primaryjoin = 'TimeSeriesResults.ZLocationUnitsID == Units.UnitsID' )
1899- ResultObj = relationship (Results , primaryjoin = 'TimeSeriesResults.ResultID == Results.ResultID' )
1899+ # ResultObj = relationship(Results, primaryjoin='TimeSeriesResults.ResultID == Results.ResultID')
19001900
19011901 def __repr__ (self ):
19021902 return "<TimeSeriesResults('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')>" % \
@@ -1905,7 +1905,7 @@ def __repr__(self):
19051905 self .IntendedTimeSpacing , self .AggregationStatisticCV )
19061906
19071907
1908- class SectionResults (Base ):
1908+ class SectionResults (Results ):
19091909 __tablename__ = u'sectionresults'
19101910 __table_args__ = {u'schema' : 'odm2' }
19111911
@@ -1927,10 +1927,10 @@ class SectionResults(Base):
19271927 ZUnitObj = relationship (Units , primaryjoin = 'SectionResults.IntendedZSpacingUnitsID == Units.UnitsID' )
19281928 SpatialReferenceObj = relationship (SpatialReferences )
19291929 YUnitObj = relationship (Units , primaryjoin = 'SectionResults.YLocationUnitsID == Units.UnitsID' )
1930- ResultObj = relationship (Results , primaryjoin = 'SectionResults.ResultID == Results.ResultID' )
1930+ # ResultObj = relationship(Results, primaryjoin='SectionResults.ResultID == Results.ResultID')
19311931
19321932
1933- class TrajectoryResults (Base ):
1933+ class TrajectoryResults (Results ):
19341934 __tablename__ = u'trajectoryresults'
19351935 __table_args__ = {u'schema' : 'odm2' }
19361936
@@ -1947,10 +1947,10 @@ class TrajectoryResults(Base):
19471947 TrajectoryUnitObj = relationship (Units ,
19481948 primaryjoin = 'TrajectoryResults.IntendedTrajectorySpacingUnitsID == Units.UnitsID' )
19491949 SpatialReferenceObj = relationship (SpatialReferences )
1950- ResultObj = relationship (Results , primaryjoin = 'TrajectoryResults.ResultID == Results.ResultID' )
1950+ # ResultObj = relationship(Results, primaryjoin='TrajectoryResults.ResultID == Results.ResultID')
19511951
19521952
1953- class MeasurementResults (Base ):
1953+ class MeasurementResults (Results ):
19541954 __tablename__ = u'measurementresults'
19551955 __table_args__ = {u'schema' : 'odm2' }
19561956
@@ -1975,12 +1975,12 @@ class MeasurementResults(Base):
19751975 XLocationUnitsObj = relationship (Units , primaryjoin = 'MeasurementResults.XLocationUnitsID == Units.UnitsID' )
19761976 YLocationUnitsObj = relationship (Units , primaryjoin = 'MeasurementResults.YLocationUnitsID == Units.UnitsID' )
19771977 ZLocationUnitsObj = relationship (Units , primaryjoin = 'MeasurementResults.ZLocationUnitsID == Units.UnitsID' )
1978- ResultObj = relationship (Results , primaryjoin = 'MeasurementResults.ResultID == Results.ResultID' )
1978+ # ResultObj = relationship(Results, primaryjoin='MeasurementResults.ResultID == Results.ResultID')
19791979
19801980 def __repr__ (self ):
19811981 return "<MeasResults('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')>" % \
19821982 (self .ResultID , self .XLocation , self .YLocation , self .XLocation ,
1983- self .ResultObj , self .XLocationUnitsObj , self .SpatialReferenceObj ,
1983+ self .ResultTypeCV , self .XLocationUnitsObj , self .SpatialReferenceObj ,
19841984 self .AggregationStatisticCV )
19851985
19861986
0 commit comments