ObjectDB Database Search

1-6 of 6 results

SQL Queries Annotations

multiple @ SqlResultSetMapping definitions. Mapping details Refine the mapping of specific columns

jakarta.persistence.ConstructorResult

Interfaces: Annotation Used in conjunction with the SqlResultSetMapping or NamedNativeQuery annotation ... " + "WHERE o.cid = c.id " + "GROUP BY c.id, c.name", "CustomerDetailsResult"); @ SqlResultSetMapping ( name ... = "orderCount"), @ColumnResult(name = "avgOrder", type = Double.class) }) }) See Also: SqlResultSetMapping

jakarta.persistence.ColumnResult

: Annotation Used in conjunction with the SqlResultSetMapping , NamedNativeQuery , or ... ) AND (order_item = i.id)", "OrderResults"); @ SqlResultSetMapping ( name = "OrderResults", entities ... = "order_item") }) }, columns = { @ColumnResult(name = "item_name") }) See Also: SqlResultSetMapping

jakarta.persistence.EntityResult

: Annotation Used in conjunction with the SqlResultSetMapping or NamedNativeQuery annotation to map ... "); @ SqlResultSetMapping ( name = "OrderItemResults", entities = { @EntityResult(entityClass = com.acme.Order.class), @EntityResult(entityClass = com.acme.Item.class) } ) See Also: SqlResultSetMapping

jakarta.persistence.FieldResult

"); @ SqlResultSetMapping ( name = "OrderResults", entities = { @EntityResult( entityClass = com.acme ... ") }) }) See Also: EntityResult SqlResultSetMapping Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name

jakarta.persistence.NamedNativeQuery.resultSetMapping

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedNativeQuery String resultSetMapping The name of a SqlResultSetMapping , as defined in metadata. The named result set mapping is used to interpret the result set of the native SQL query. Alternatively, the elements NamedNativeQuery