Home > Back-end >  Java jpa @ Query custom Query problem?
Java jpa @ Query custom Query problem?

Time:09-18

Environment
Spring data jpa
Postgresql database

Under the Resource pack to write a custom query,
I want to the current value of the query sequence , there is no question of sequence storage,
@ Query (value="HTTP://https://bbs.csdn.net/topics/select currval (' seq_product_handmade_spu) as id") error,
Org. Hibernate. HQL. Internal. Ast. Tree. MethodNode
\ [METHOD_CALL] MethodNode: '('
+ - [METHOD_NAME] IdentNode: 'currval' {originalText=currval}
\ [EXPR_LIST] SqlNode: 'exprList'
\ [QUOTED_STRING] LiteralNode: ' 'Seq_Product_Handmade_SPU'
[select currval (' Seq_Product_Handmade_SPU) as id]

Could not parse error?
  • Related