I want to execute a method after, jHipster application started. Where should I put my method?
I tried to run my method in MyApp.java
method:
@PostConstruct
public void initApplication()
But I got error:
Invocation of init method failed; nested exception is org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: xxx.xxx.xxx
xxx.xxx.xxx.cars, could not initialize proxy - no Session