Since every key in cache is unique then every entity in the same cache is unambiguously idebtified by its key. If you need to have two ebtities with key 1, for example, then just create key class for each entity, for example Cache1Key and Cache2Key each with single int ID field.
Kind regards, Alex 25 апр. 2017 г. 10:30 AM пользователь "blasteralfred [via Apache Ignite Users]" <[email protected]> написал: Hi, I got it. But 1 doubt. Where are we defining that idB belong to ClassB? ------------------------------ If you reply to this email, your message will be added to the discussion below: http://apache-ignite-users.70518.x6.nabble.com/How-to-create-class-affinity- tp12211p12219.html To start a new topic under Apache Ignite Users, email [email protected] To unsubscribe from Apache Ignite Users, click here <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=YWxleGFuZGVyLmZlZG90b2ZmQGdtYWlsLmNvbXwxfC0xMzYxNTU0NTg=> . NAML <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-create-class-affinity-tp12211p12223.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
