java


Teradata date in where clause of Hibernate Native Query


I am not sure on how to pass the date for teradata in hibernate, am getting the below error when the date is passed in the where clause.
17:43:22.855 [DefaultThreadPool-6] ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper [Teradata Database] [TeraJDBC 15.10.00.22] [Error 2666] [SQLState 22007] Invalid date supplied for Table.REPORTDATE.
#Repository
#Transactional(value = "abcTransactionManager",readOnly=true,timeout=300)
public interface DmrMetricsRepository extends JpaRepository<SDKpiLatencyAgg, Serializable>{
#Query(nativeQuery=true,value="select distinct sla_type from pp_engineering_views.SD_KPI_LATENCY_AGG")
List<String> getSlaTypes();
#Query(value="select sourcesystemcd,targetsystemcd,daily_latency"
+ " from pp_engineering_views.SD_KPI_LATENCY_AGG where reportdate=:reportDate and sla_type=:slaType", nativeQuery=true)
List<Object[]> getDMRMetricData(#Param("reportDate") String reportDate, #Param("slaType") String slaType);
}

Related Links

byte-wise identical Vs. equivalent content [closed]
Finding the oldest element in a min priority queue java
Java battleship grid
Why ArrayBlockingQueue use local variable lock? [duplicate]
How to determine component type
How to examine objects of an ArrayList (java)
Java PaintComponent Draw 2 Times
Clarification on Step Chaining
how can i validate span tag text using single xpath?
Populate an html select with spring, thymeleaf, and mongo
List view activity is not working properly in switch case inside spinner class
When does Kafka connection require ZooKeeper config?
Gradle 'application' plugin - is it possible to specify which mainClassName to use?
java.nio.file.Path error with VSS (Volume Shadow Copy) paths
How do I get my Yelp Scraper to ignore ads?
Target not null in Android app in method Picasso.with().load()

Categories

HOME
ms-access
cakephp
bluetooth
hive
fluentd
view
hp-exstream
cplex
malloc
baqend
serverspec
directx
windows-10-universal
handsontable
export-to-csv
collectd
try-catch
seaborn
reactive-cocoa
oxyplot
kryo
visjs
sylius
php-openssl
apache-commons-io
dbclient
atlassian-crucible
jaxb2
webtest
commit
azure-sql-database
nssegmentedcontrol
lto
withings
tasker
galen
botbuilder
vao
acoustics
node-sass
segment
cubic-spline
scrollable
youcompleteme
dotnetzip
lift-json
memory-alignment
zendesk-app
titanium-android
topbeat
lttng
disque
prettytensor
whois
ios8-today-widget
tarjans-algorithm
method-parameters
nsight
modalpopup
mdt
bitcoinj
navigationservice
rtmfp
access-rights
ruby-datamapper
ora-00911
type-equivalence
wsdl-2.0
unc
isnullorempty
parametric-equations
window-management
external-accessory
joyent
locationlistener
inotifycollectionchanged
icanhaz.js
audio-capture
exchange-server-2003
yagni
zend-decorators
gacutil
geneva-server

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App