Omaha #2707 replaced LSR officeId constraint with stationId

Change-Id: I05fef0c56801fa907e45da3400437e71ce0e38dd

Former-commit-id: acc9e8630d [formerly acc9e8630d [formerly e0cd69f020d351f0aaefd5b35ffb369e44a04e48]]
Former-commit-id: ac952bc760
Former-commit-id: 0d29964efc
This commit is contained in:
Brian Clements 2015-01-06 12:33:06 -06:00
parent f5db894b86
commit 0a0547b474
2 changed files with 4 additions and 3 deletions

View file

@ -14,8 +14,8 @@ STATION_COLUMN='stationid'
LAT_COLUMN='latitude'
LON_COLUMN='longitude'
CONSTRAINT_NAME='latitude_longitude_officeId_refTime_forecastTime_eventType'
CONSTRAINT_COLUMNS='latitude, longitude, officeId, refTime, forecastTime, eventType'
CONSTRAINT_NAME='latitude_longitude_stationId_refTime_forecastTime_eventType'
CONSTRAINT_COLUMNS='latitude, longitude, stationId, refTime, forecastTime, eventType'
PSQL="/awips2/psql/bin/psql"

View file

@ -72,6 +72,7 @@ import com.vividsolutions.jts.geom.Geometry;
* Jan 15, 2014 2581 njensen Changed constraint to use officeId instead of stationId
* Jan 30, 2014 2581 njensen Added dataURI column back in
* Sep 16, 2014 2707 bclement removed dataURI column, event type now string, added event units
* Jan 06, 2014 2707 bclement changed unique constraint from officeId to stationId
*
* </pre>
*
@ -81,7 +82,7 @@ import com.vividsolutions.jts.geom.Geometry;
@Entity
@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "lsrseq")
@Table(name = "lsr", uniqueConstraints = { @UniqueConstraint(columnNames = {
"latitude", "longitude", "officeId", "refTime", "forecastTime",
"latitude", "longitude", "stationId", "refTime", "forecastTime",
"eventType" }) })
/*
* Both refTime and forecastTime are included in the refTimeIndex since