String deleteContent = recordClassName + " mergedRecord = entityManager.merge(" + recordVarParamName + ");\n"
+ "mergedRecord." + JPABaseRecordClassRenderer.CLEANUP_ORPHANS_METHOD_NAME + "(entityManager);  // work-around till CascadeType.DELETE-ORPHAN is supported\n"
+ "entityManager.remove(mergedRecord);\n";
JavaMethod deleteMethod = myClass.addMethod(Access.PUBLIC, "void", "delete", recordClassOnlyParam, deleteContent);
<BUG>addSpringSupport(deleteMethod);
</BUG>
String saveContent = "if (" + recordVarParamName + ".isNewRecord()) {\n"
+ TAB + "create(" + recordVarParamName + ");\n"
+ "} else {\n"
+ TAB + "update(" + recordVarParamName + ");\n"

String deleteContent = recordClassName + " mergedRecord = entityManager.merge(" + recordVarParamName + ");\n"
+ "mergedRecord." + JPABaseRecordClassRenderer.CLEANUP_ORPHANS_METHOD_NAME + "(entityManager);  // work-around till CascadeType.DELETE-ORPHAN is supported\n"
+ "entityManager.remove(mergedRecord);\n";
JavaMethod deleteMethod = myClass.addMethod(Access.PUBLIC, "void", "delete", recordClassOnlyParam, deleteContent);
addJavaEESupport(deleteMethod);
String saveContent = "if (" + recordVarParamName + ".isNewRecord()) {\n"
+ TAB + "create(" + recordVarParamName + ");\n"
+ "} else {\n"
+ TAB + "update(" + recordVarParamName + ");\n"
