Omaha #2707 replaced LSR officeId constraint with stationId

Change-Id: I05fef0c56801fa907e45da3400437e71ce0e38dd

Former-commit-id: 27c93f4d87 [formerly cbc8c0d72d] [formerly 111c81d35c] [formerly 111c81d35c [formerly acc9e8630d]] [formerly 27c93f4d87 [formerly cbc8c0d72d] [formerly 111c81d35c] [formerly 111c81d35c [formerly acc9e8630d]] [formerly ac952bc760 [formerly 111c81d35c [formerly acc9e8630d] [formerly ac952bc760 [formerly e0cd69f020d351f0aaefd5b35ffb369e44a04e48]]]]]
Former-commit-id: ac952bc760
Former-commit-id: 468beb1f75 [formerly cdcb5b287b] [formerly 877190a87f] [formerly 17a3f10529a9b9a97b550f6c114cea43734006d7 [formerly 5540488375a5b61809fc3517ad4f496e1a5b43d3] [formerly 877190a87f [formerly 0d29964efc]]]
Former-commit-id: 1fe9791b290030516028146141eada570b33aeab [formerly cd9473b86c8a2ff84badf489f7877a46d00e7ca5] [formerly 3ec63f55b8 [formerly 0a0547b474]]
Former-commit-id: 3ec63f55b8
Former-commit-id: 3e6e038aa3
This commit is contained in:
Brian Clements 2015-01-06 12:33:06 -06:00
parent 07c616bcad
commit 79e642e6a1
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