private void addBasicAnnotation(EntityBean entityBean, String fieldName, Basic basic, Column column) {
try {
addColumnAnnotation(entityBean, fieldName, column);
Boolean optional = basic.isOptional();
FetchType fetchType = basic.getFetch();
Map<String, Object> basicProps = new HashMap<String, Object>();
if (optional != null)
basicProps.put("optional", optional.booleanValue()); //$NON-NLS-1$
if (fetchType != null)
basicProps.put("fetch", fetchType.value()); //$NON-NLS-1$
String methodName = convertFieldNameToGetterName(fieldName);
facade.addMethodAnnotation(entityBean.getEjbClass(), methodName, new String[0], javax.persistence.Basic.class, basicProps);
} catch (Exception e) {
String warning = String.format(Messages.getString("org.apache.openejb.helper.annotation.warnings.12"), "@javax.persistence.Basic", entityBean.getEjbClass());
facade.addWarning(warning);