Questions tagged [nativequery]

JPA concept that allows queries in your native database syntax (instead of JPQL)

Related links

355 questions
0
votes
1 answer

Native query - how retrive only specific colums from DB for Entity

In my DB I nave a table Subject with columns id (long) name (String) ifActive (0 or 1) text (very long String) In my web page I must display list of names of Active Subjects. So I declare the following native query in xml…
nik
  • 365
  • 1
  • 4
  • 15
0
votes
1 answer

Column type not valid with NATIVE query jpql

this is my repository: @Repository public interface EventRepository extends JpaRepository, JpaSpecificationExecutor{ @Query(value=" SELECT DISTINCT event.EVENT_ID " + "FROM EVENTS event " +…
Innet
  • 459
  • 3
  • 5
  • 18
0
votes
1 answer

Oracle: ORA-00911: invalid character

In my code I have the following query string: private static final String QUERY = format( " SELECT t2.address " + " FROM schema.table1 t1 ," + " schema.table2 t2 ," + …
java123999
  • 6,974
  • 36
  • 77
  • 121
0
votes
0 answers

derived table in Hibernate native query

I have a native MySQL query with several join tables, including a derived table and Hibernate is failing to parse it. SELECT