ahmetb / orman

lightweight and minimalist ORM for Java/Android. works with SQLite & MySQL. (not actively maintained)
Other
249 stars 47 forks source link

How to connect two db at the same time #55

Closed jachicore closed 10 years ago

jachicore commented 10 years ago

How to connect two db at the same time? MappingSession.registerPackage("xxxx"); MappingSession.registerDatabase(db); MappingSession.start(); It's same like that it can only init one db connection and entity the db mapping.So if I want to connect two db at the same time,How can I do?

ahmetb commented 10 years ago

@jachicore unfortunately by design it works with only one db at a time because many things are static in this library. I wasn't a good software engineer enough back in my sophomore year at college. :trollface: I would certainly not design it like this today.

Here's a selfie to hopefully tease this problem: selfie-0

jachicore commented 10 years ago

Haha...So handsome.