Hi, Niclas! > To explain; > The UoW is given a MixinType that the client wants to retrieve, and > that will mean that all Entity types that has that Mixin implemented > will be a possible return type. The UoW has no way to know this in a > generic fashion.
lets see an example, say I have code like this: uow.get( Country.class, isoCode ); UoW knows what I am looking for - Country. Why can't this be relayed to ES ? ES interface looks a bit strange to an uninitiated, any chance someone could put a few javadocs there? > The ES could require that Identities are formatted with entity types > according to some syntax, and to ensure such syntax it is easiest if > the IdentityGenerator service is implemented by the ES as well. For Could you elaborate on how this interaction works? IdentityGenerator and ES/UoW. Example: Country country = uow.newEntity( Country.class, isoCode ); but IdentityGenerator has this in its interface: String generate( Class<? extends Identity> compositeType ); where does id I pass to newEntity go? Thanks, Alex. _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

