jpql
JPQL: determine sub class type from super class join?
My question is very similar to this one: How can I write a Hibernate Criteria query, for a super-class, and check for a certain sub-class?[详细]
2023-03-17 11:43 分类:问答How to query data base on Date, but your DB store date as date + time.
Sin开发者_C百科ce I want to store date and time for each data in table X, I use @Temporal(TemporalType.TIMESTAMP)[详细]
2023-03-17 00:27 分类:问答How to find using JPQL if member value is in a collection of values
I have an object in which a member is an enum, and I want to write a query returning all elements for which that member is in a list of values. So, I\'ve written the following JQP query[详细]
2023-03-16 14:45 分类:问答How to delete a ManyToMany item using JPQL?
I have two models, say : BlogPost(title, message) Tags(name) Both have a ManyToMany relationship defined.[详细]
2023-03-15 19:06 分类:问答How to get the SQL String From JPQLQuery
I\'m using EclipseLink. I\'ve a JPQLquery and I want to get the sql String.. Now I\'m doing in this way:[详细]
2023-03-14 07:57 分类:问答JPQL Coalesce non-scalars?
I have a table storing application configuration parameters like so: setName | key| value ----------------------------------[详细]
2023-03-14 06:49 分类:问答JPA Select latest instance for each item
Let\'s say I have a Meeting entity.Each meeting has a single attendee and a meeting date.Within my meeting table I may have multiple meetings for each attendee, with different dates for each.I need a[详细]
2023-03-12 06:44 分类:问答Can I get the SQL string from a JPA Query object?
May I know how can I get the sql from a JPA query? or let\'s say, convert the JPA query 开发者_StackOverflow中文版to a SQL string? Thank you very much!For Eclipselink: you can extract the SQL the foll[详细]
2023-03-11 00:20 分类:问答How to write JPA query with boolean condition
In my project i am using JPA 2.0 with eclipselink inplementation, an I have following problem: I have defined entity with boolean column:[详细]
2023-03-10 11:50 分类:问答Update value with join
using Hibernate, I\'d like to update a data in the database based on conditions, but I got the following error : \"node t开发者_如何学Goo traverse cannot be null\"[详细]
2023-03-09 23:07 分类:问答