public MappedLdapGroup createMappedLdapGroup ( final Team team , final String dn ) { pm . currentTransaction ( ) . begin ( ) ; final MappedLdapGroup mapping = new MappedLdapGroup ( ) ; mapping . setTeam ( team ) ; mapping . setDn ( dn ) ; pm . makePersistent ( mapping ) ; pm . currentTransaction ( ) . commit ( ) ; return getObjectById ( MappedLdapGroup . class , mapping . getId ( ) ) ; }
Creates a MappedLdapGroup object .