publicissapient-france / selma

Selma Java bean mapping that compiles
http://selma-java.org
Apache License 2.0
213 stars 38 forks source link

Unable to load generated #181

Open 1017727621 opened 7 years ago

1017727621 commented 7 years ago

` Unable to load generated mapper class com.xxx.xxx.bookingclass.javabeanMapper.CourseRuleJavaBeanMapperSelmaGeneratedClass failed : com.xxx.xxx.bookingclass.javabeanMapper.CourseRuleJavaBeanMapperSelmaGeneratedClass

private CourseRuleJavaBeanMapper toJavaBean() { return Selma.builder(CourseRuleJavaBeanMapper.class).build(); } if (courseRule == null) { courseRule = new CourseRule(); courseRule= toJavaBean().asCourseRule(courseRuleVO); courseRule.setCreateTime(new Date()); courseRuleMapper.insert(courseRule); }

@Service @Mapper(withCyclicMapping=true, withIgnoreMissing = IgnoreMissing.DESTINATION, withIoC=IoC.CDI_SINGLETON ) public interface CourseRuleJavaBeanMapper {

public CourseRule asCourseRule(CourseRuleVO courseRuleVO);

public CourseRuleVO asCourseRuleVO(CourseRule courseRule);

}

`