If understood correctly, ActiveJdbc
compiler should take as input hollow class like this
public class Employee extends Model {}
and fill it with some code from database metadata.
But how can it know where database is located?
I found only one place here http://javalite.io/getting_started where database is mentionned, namely
Base.open("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/test", "user1", "xxxxx");
So, does instrumentation compiler scans code for calls to Base.open()
and parses it for URL?
I can't believe it. What if there are multiple calls to different databases?
What if there is no Base.open()
call?