private void generateInsert(M2MEntity entity, String packageName) {
		if (!isMethodAlreadyDefined(entity, "insert")) {
			// @formatter:off
			MethodSpec methodSpec = MethodSpec.methodBuilder("insert").addModifiers(Modifier.PUBLIC)
					.addModifiers(Modifier.ABSTRACT).addAnnotation(AnnotationSpec.builder(BindSqlInsert.class).build())
					.addParameter(ParameterSpec.builder(TypeUtility.className(packageName, entity.name), "bean")
							.addAnnotation(
									AnnotationSpec.builder(BindSqlParam.class).addMember("value", "$S", "bean").build())
							.build())
					.returns(Integer.TYPE).build();
			// @formatter:on
			classBuilder.addMethod(methodSpec);
		}
	}
private void generateInsert ( M2MEntity entity , String packageName ) { if ( ! isMethodAlreadyDefined ( entity , "insert" ) ) { MethodSpec methodSpec = MethodSpec . methodBuilder ( "insert" ) . addModifiers ( Modifier . PUBLIC ) . addModifiers ( Modifier . ABSTRACT ) . addAnnotation ( AnnotationSpec . builder ( BindSqlInsert . class ) . build ( ) ) . addParameter ( ParameterSpec . builder ( TypeUtility . className ( packageName , entity . name ) , "bean" ) . addAnnotation ( AnnotationSpec . builder ( BindSqlParam . class ) . addMember ( "value" , "$S" , "bean" ) . build ( ) ) . build ( ) ) . returns ( Integer . TYPE ) . build ( ) ; classBuilder . addMethod ( methodSpec ) ; } }
Generate insert.

@param entity
the entity
@param packageName
the package name