}
@SuppressWarnings("unchecked") //$NON-NLS-1$
private void addIdClassAnnotation(EntityBean entityBean, org.apache.openejb.jee.jpa.Entity entity) {
try {
IdClass idClass = entity.getIdClass();
if (idClass == null) {
return;
}
String cls = idClass.getClazz();
Map props = new HashMap();
props.put("value", cls); //$NON-NLS-1$
facade.addClassAnnotation(entityBean.getEjbClass(), javax.persistence.IdClass.class, props);
} catch (Exception e) {
String warning = String.format(Messages.getString("org.apache.openejb.helper.annotation.warnings.12"), "@javax.persistence.IdClass", entityBean.getEjbClass());