How can SBT generate metamodel classes from model classes using DataNucleus?
问题 How can I generate metamodel classes (like QClient, QProduct, QInvoice) from a persistence model classes (like Client, Product, Invoice) so that a JDOQL typesafe queries can be employed? In particular, I'm interested on generating the metamodel classes and also run bytecode enhancement on persistence classes, via SBT and using DataNucleus with JDO annotations. This question is related to How can I run DataNucleus Bytecode Enhancer from SBT? 回答1: In a nutshell, you need to define functions in