是否可以将@NamedNativeQuery注释的sql查询文本外部化为外部属性文件?
@SqlResultSetMapping( ... )
@NamedNativeQuery(
name="query_name",
query="my complex sql query",
resultSetMapping = "query_result_mapping"
)
@Entity
public class Product {
@Id
private Long id;
private String name;
// other fields omitted
// getters and setters
}