• 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

@NamedQuery with LocalDateTime

 
Ranch Hand
Posts: 88
  • 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: 6363
172
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: 4315
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: 88
  • 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: 4315
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.
 
I've never won anything before. Not even a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!