1. JPA Native Query for Entity with Inheritance stackoverflow.comI have an entity class and a subclass based on that entity:
and
I need to issue a native query that uses a stored procedure ... |
2. Hibernate: Mapping result set of native query with @SqlResultSetMapping stackoverflow.comI'm trying the following: MyResult.java :
|
3. Map a NativeQuery into an entity stackoverflow.comI'm having trouble trying to map a native SQL query using JPA, and Hibernate as a provider. This is the code for the entity that I'm using for this purpose:
|
4. Map an entity to an Native SQL Query stackoverflow.comIs this possible to map a SQL Native query (instead of a table) with an Entity without annotations (using XML configuration)?? I know that i can make a View in the database ... |
5. JPA 2.0 native query results as map stackoverflow.comI run a JPA 2.0 native query like this:
now list has all the rows returned by the query. I can ... |
6. Mapping Exception: Unable to read XML when externalizing a named native query in JPA 2.0 stackoverflow.comI have some long queries (text wise) that I am trying to externalize into an orm.xml file for readability and maintainability purposes but I keep getting a mapping exception: Unable to ... |
7. Native query column name to result mapping. forum.hibernate.org |
8. native sql named query in mapping file forum.hibernate.orgI created an entity mapping for a helper class we use to improve performance. The entity is not mapped to a table. It's more like a DTO we return from native SQL queries. The entity mapping is shown below. What I'm curious about are the rules with respect to using this mapping from a named sql query. In the first query ... |
9. How to map database LONG-> native long with non managed? forum.hibernate.org |
10. mapping native sql results to non entity class forum.hibernate.orgOK, I'm really lazy like you. I did get the setResultTransformer to work, but I still have one issue with it. This is the code that I'm using Code: String query = "select tbl1.my_flag1 as myFlag1, " + " tbl1.my_flag2 as myFlag2" ... |
11. mapping native query with joins to class (JPA) forum.hibernate.orgHello: I have a basic question. What is the simplest way to take a native sql query that has various joins and map the result columns to a flat Java entity class using JPA annotations? The output will not need to be managed, just bound to a UI for display. Any examples I can look at? Thanks, Matt |
12. native query and mapping forum.hibernate.org@SqlResultSetMapping( name="testCityNameAndPopulationMapping", entities={ @EntityResult( entityClass=TestCity.class, ... |
13. JPA native query mapping of CHAR(3) truncates to 1 char forum.hibernate.orgQuery q = em.createNativeQuery("select Currency, Amount from Item where ..... "); for (Object[] i : (List < Object [] > ) q.getResultList()) { // i[0] ... |
14. Is defining native SQL in mapping file better? forum.hibernate.org |
15. native sql ... any way without mapped class forum.hibernate.orgI'm afraid I do not have your solution, I'm simply a new hibernate user possiby in the same situation as you. I'm not sure if native SQL or some other feature of hibernate might resolve my issue; I'm curious if my issue equates to yours? I have mapped a class to a table, for example's sake let's call it Vehicle. A ... |
16. mapping native database arrays to hibernate... forum.hibernate.orgHibernate version: hibernate-3.01 Name and version of the database you are using: PostgreSQL 8.0.3 how can i map a table column that contains an array of for example floats into a variable of the type float[] in a java class? so for example i have this test table: \d testlist Table "public.testlist" Column | Type | Modifiers --------+---------+-------------------------------------------------------------- testje | integer ... |
17. Native SQL with |