In your question, if "
oracle user" means "
Oracle database user", and "
logged user" means "
application system user", then my understand of your question is:
Code:
[color=blue]
In an application, for each logged application user, the application code decides to use which existed Oracle database user to connect to Oracle. But how to tell Hibernate to use a specific Oracle database user?
[/color]
Hibernate uses JDBC connections, but it is not required for Hibernate to create JDBC connections by himself.
For example, one can first get a JDBC connection with some user/password, then tell Hibernate to create a Session on that JDBC connection.
(And, the mapping does not care those lower-level things.)