Turn off "error" about missing no-arg constructor in Eclipse

Viewed 4349

I'm using open-jpa and as we know it's shipped with enhancer which could create non private no-arg constructor during enhancement. It works, however eclipse have problem with it. It's quite rational that it doesn't know anything what would happen during ant build, so is there any possibility to turn off this particular error The Java class for mapped type ... must define a non-private zero-argument constructor bounded to @Entity annotation?

2 Answers

You can also simply create a non-private zero-arg constructor

for example:

public foo(){
   super();
}
Related