nomin

Running Nomin Mapper under Eclipse cause NominException: Resource not found

江枫思渺然 提交于 2020-01-05 07:55:10
问题 I am using a Spring/Groovy application with Nomin as mapper. My Tests run fine on console after gradle build/test . Nomin finds the groovy resource file with the defined mapping. But I dont get it work in Eclipse/STS. I defined a Utils class to get the Resource File Name: class ResourceUtils { static def getMapperResource() { ClassPathResource.newInstance("coinmarketcap2coin.groovy").filename } } My Class using Nomin Mapper calls the constructor as: def nomin = new Nomin(ResourceUtils

Nomin and Spring Boot application: recursive mapping rule a = b causes infinite loop

好久不见. 提交于 2019-12-11 06:45:33
问题 As I had already few issues with combination Nomin, Eclipse and Groovy (see link1 and link2), I am again struggling with it. My application works with JUnit Tests, both in Console via Gradle and Eclipse. But now it doesn't want to work when executing SpringBoot-Main class. Either in Eclipse nor with gradle bootRun on Console or Eclipse Gradle Task => Same Exception @SpringBootApplication class CcmApplication { static void main(String[] args) { def ctx = SpringApplication.run CcmApplication,

Nomin automap causes infinite loop

北城余情 提交于 2019-12-02 01:42:48
问题 I am using Nomin for mapping tasks. As taken from the documentation of Nomin it should be able to map fields with the same name by itself in case automapping has been activated. When activating it, it causes an infinite loop exception. I have the following: mappingFor a: CoinsOnMarketPlace, b: Coin // automap() // when deactivated it works fine, when activated infinite loop a.coin.name = b.name a.coin.rank = b.rank a.priceUSD = b.priceUSD // Could be automapped a.priceBTC = b.priceBTC //