I have a class Customer and CustomerDependant entities. Customer has many to many bi-directional relationship with its dependents. I need to find customers filtering by name and dependent name.
I always get the same error when using the criteria API: Local Exception Stack: Exception [EclipseLink-6075] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions
I want to make a kind of \"news feed\" in the application of my company. In the scenario, User actions will generate \"Activity\" of different kinds, and other users will see in their \"news feed\".
In my UserTbl entity, I have this @OneToOne( cascade = CascadeType.REMOVE, mappedBy = \"user\", fetch=FetchType.EAGER )
I\'m tearing my hair out over something that may very well be very simple, but I just cant get it right.
I have the following classes: public class Item { public int Id { get; set; } public IDictionary<int, ItemLocal> { get; protected set; }
I want to do something like this: 开发者_高级运维select count(*) from (select ...) (As it would be in SQL), but in JPA.
I\'m using jpa criteria query. Is it possible to filter an entity by the type of some of it\'s atributes?
The situation is like this. The format of the date in SQL server is different from oracle. In SQL server it is stored as TimeStamp. How doe开发者_运维问答s Restriction.eq , Restriction.lt, Restriction
I have two tables for which I can\'t implement mapping @OneToMany in their entities unless I have a circle dependency. I want to create a Hibernate Criteria so that I\'d be able to join this tables on