• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

@NamedQuery with LocalDateTime

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
   Hi, everybody!
   The following code:


    Idea marked "u.dateTime" at NamedQuery in red. And reported: "...number, date or string expected..."

    I use the following converter:



    Additionally: I have doubts concerning of ":min AND :max"-values. `In dao-level I try to give values as follows:


   I'd appreciate for any help!
 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are using "u" as a field name and as a table name.  I don't think that's legal.  
 
Rancher
Posts: 4576
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have to use pre-JPA 2.2?
 
Andrey Dmitriev
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dave Tolls wrote:Do you have to use pre-JPA 2.2?



   Hm.. And how could I know JPA-vertion in Intelliji Idea? I I could not found it yet
 
Dave Tolls
Rancher
Posts: 4576
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what version of IntelliJ do you have?
What persistence framework are you using, and what version?
That will tell you if you are using a JPA 2.2 compliant framework.
 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic