jpa - JPQL: InnerSelect causes PersistenceException (HibernateException: Errors in named queries) -


I try to use an internal selection, but only get the exception "Hibernate exception: Errors in named query"

Both the institutions:

  Public class A implementation serializable {@Id @Column (nullable = false) @ Generated Values ​​(strategy = generation type.INNNTTIT) Private Long ID ; } Public Class B Serializable {@Id @GeneratedValue (strategy = GenerationType.IDENTITY) Private Long Id; @JoinColumn (name = "FK_A_ID", nullable = true) @ManyToOne Private AA; }  

causes the exception in this query:

  Choose one from where no.id (select from BB to B)  

but there is no exception:

  Select one from one where no AIDs (1, 2, 3)  

Any idea what is wrong? Thank you very much ...

The reason was appearing on the other output:

  QuerySyntaxException: "Tablename is not a map"  

This error was logged and is not available in exception.


Comments

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

mysql - Can mysql_pconnect be called multiple times in one php page? -