dennisbyrne wrote:
and, yes, if your requirements say that a machine must make a connection to the db, then the password is going have to be somewhere on that machine if it is not going to be supplied by a user .
Under what circumstance would a Swing client using Hibernate not make a connection to the database? I.e., is there an alternative?
I guess what I'm thinking is that in the ideal world, an ORM tool would have a client piece and an application server piece, where the communication between the client and the application server is done with the user's login to the application, and the communication between the application server and the database is done with an application/system ID that has read/write access. That way, the database password is never on the client machine and the only possible database accesses are those that are locked up in application code residing on a secured application server.
But from my limited knowledge of Hibernate, it does not seem to work this way -- Hibernate sits either on the client or the application server but not both.
In short, is Hibernate bringing back some of the disadvantages of client/server (compared to 3-tier) in exchange for the advantages of object-oriented persistence?