I have the following situation :

```
Project A - Contains a DB-Configurations and Creates Session_Factory at Init.
Project B - Contains entities and using Project A to persist entities.
Project C - Contains entities and using Project A to persist entities.

```

I am working in OSGi based environment using karaf. I am making small components/Bundles which are using Project A to persist their entities. Project A will be loaded first always as others are dependent on it. 

Project A will initiate Session Factory at start but without any packages/classes to scan for entities.

Now any package tries to persist the object using Project A will ended up in exception which is obvious

**org.hibernate.MappingException: Unknown entity:**

Is there any way i can persist the entities without scanning any packages/classes...?