I have implemented a custom identity model for my application based on the existing quickstart. I am using a JPA store with PostgreSQL 9.4 and Hibernate 4.2. I am able to create the necessary entities (Roles, Groups, Users) and authentication works, but when I grant a role to a user or add a user to a group, duplicate records are created within the relationship_identity_type_entity table.
I found another user who had this problem a couple months ago and am awaiting a response from him. Has anyone else out there encountered this problem before?
Any tips on where I should like. I am considering getting the source code and debugging myself, but was hoping to find a simple solution before going to this next step.
If I use the RelationshipManager queries I get the correct results. I think I know why there are "duplicates" in the database, but don't have to be concerned about them as long as the queries for Roles and GroupMemberships work correctly.