![]() (Can i use Employee Objects to retreive the department in the first query.add i wrote ?) If the requirement requires me to use Employee Ids as the search criteria is there a possible way for it. from where I get all the Ids of those employees now i have to find the revisions for the department that contains those employee Ids. Then I retrieve a list of Employees belonging to a contracting company. So My question is that if my class is like this: Query.add(AuditEntity.relatedId("employee").in(employeeIdList))īut there is no such method in() with AuditRelatedId object. ![]() Query.add(AuditEntity.property("employee").in(employeeList)) īut this will take a LIST of employee objects not a list of Integer Ids (right?) check for and perform versioning of the updated. When I use the Hibernate Envers native AuditReader I get the same behavior when querying for revision n. As shown in Listing 10-49, the entity class is annotated with Audited, which Envers listeners will. Now i am trying to write with a list of employee-Ids Hello, given I have an audited entity which was modified on revision n. I am trying to write a query for a relationship between an department that can have Many employees ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |