Skip to content
Discussion options

You must be logged in to vote

When I comment some modules in my context creator, The problem is solved:

    runtime = ServerRuntime.builder() 
        .dataSource(dataSource) 
        .addConfigs(config.configurationLocations()) 
        .addModule(new ServerModule()) // added because of Native Imge
//        .addModule(CommitLogModule.extend().commitLogAnnotationEntitiesOnly().addListener(cayenneCommitLogger).module()) //
        .build();

//    LifecycleCallbackRegistry registry = runtime.getDataDomain().getEntityResolver().getCallbackRegistry();
//    for (Class<?> clazz : config.lockedClasses())
//      registry.addCallback(LifecycleEvent.PRE_UPDATE, clazz, "preUpdate");
    objectContext = runtime.newContext();
  }

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ma-sharifi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ma-sharifi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants