final String native_query2 = "Select native2 from TestEntity native2 where native2.field = :field";
EntityMetadata metadata = new EntityMetadata(EntitySample.class);
metadata.setPersistenceUnit("rdbms");
PersistenceUnitMetadata puMetadata = new PersistenceUnitMetadata();
puMetadata.setPersistenceUnitName(persistenceUnit);
Map<String, Object> props = new HashMap<String, Object>();
props.put(Constants.PERSISTENCE_UNIT_NAME, persistenceUnit);
props.put(PersistenceProperties.KUNDERA_NODES, "localhost");
props.put(PersistenceProperties.KUNDERA_PORT, "9160");
props.put(PersistenceProperties.KUNDERA_KEYSPACE, "KunderaHbaseExamples");
props.put(PersistenceProperties.KUNDERA_CLIENT_FACTORY, "com.impetus.client.CoreTestClientFactory");
Properties p = new Properties();
p.putAll(props);
puMetadata.setProperties(p);
ApplicationMetadata appMetadata = kunderaMetadata.getApplicationMetadata();
Map<String, PersistenceUnitMetadata> metadataCol = new HashMap<String, PersistenceUnitMetadata>();