How to turn off DataNucleus Enhancer while working with Google App Engine

前端 未结 3 1839
谎友^
谎友^ 2020-12-28 08:27

I am working in Eclipse on a Google AppEngine Java code. Every time I save a java file, the DataNucleus Enchancer starts off \"Enhancement of Classes\". Its quite irritating

3条回答
  •  醉酒成梦
    2020-12-28 09:20

    You can restrict which classes DataNucleus watches for changes so that it only re-runs the enhancement when your model classes actually change.

    Go to the Project's properties, and select Google->App Engine->Orm. There you can specify patterns for the files to watch.

    For example, I put all my model beans in a model/ subdirectory, so a pattern of src/**/model works for me. There are also example patterns under the 'Add' dialogue.

提交回复
热议问题