• 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
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

@NamedQuery with LocalDateTime

 
Ranch Hand
Posts: 92
  • 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: 6439
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.  
 
Master Rancher
Posts: 4370
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: 92
  • 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
Master Rancher
Posts: 4370
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.
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's 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!