Created
February 20, 2020 04:52
-
-
Save aonrobot/907dd13e977712b217a29aa52f96f702 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<AppInfo> appInfos = appInfoRepository.findByByTxnDate(LocalDate.parse("20200116", DateTimeFormatter.ofPattern("yyyyMMdd"))); | |
Query query = this.entityManager.createNativeQuery("SELECT app.appId, app.caseId, [case].keyIndex FROM [esolution].[dbo].[AppInfo] app JOIN CaseInfo [case] ON app.caseId = [case].caseId WHERE app.txnDate >= Convert(datetime, ?1);"); | |
query.setParameter(1, "2020-01-16"); | |
Object obj = query.getResultList(); | |
if (obj != null) | |
System.out.println((List<DataLakeAppInfo>) obj); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment