eclipse « Schema « JPA Q&A

1. JPA how to store newly created tables from some entities in the ADMIN Schema?

I made a little mistake in one of my projects. I wrongly set JPA to store the newly created tables from the entities in the USER schema. But now i want ...

2. How to connect my new schema using Eclipse

public static void main(String args[]) { AnnotationConfiguration config = new AnnotationConfiguration(); config.addAnnotatedClass(User.class); config.configure(); new SchemaExport(config).create(true, true); }