Re: Hibernate Question



Ian Semmel pisze:
I don't know if this is the correct ng for this but ..

How do you programatically set the password for a hibernate connection ?

I have tried something like

configuration = new Configuration ();
configuration.configure ( configFile );
Properties p = configuration.getProperties ();
p.setProperty ( "connection.username", "user" );
p.setProperty ( "connection.password", "password" );
configuration.setProperties ( p );
sessionFactory = configuration.buildSessionFactory ();

This seems to have no effect and it uses the password in the config file.

If I delete the user and password fields from the config file the connection cannot be made.

mayby: hibernate.connection.pasword
.



Relevant Pages

  • Re: Hibernate Question
    ... How do you programatically set the password for a hibernate connection? ... configuration = new Configuration; ... If I delete the user and password fields from the config file the connection cannot be made. ...
    (comp.lang.java.programmer)
  • Re: A simpler logging configuration file format?
    ... system to cross-refer different entities (loggers, handlers, ... formatters) declared in the config file. ... logging configuration as just part of an application's overall ...
    (comp.lang.python)
  • Never mind.
    ... different configuration. ... the entry in the GAC did not match the ... The entry in the reference pointed to an incorrect ... > the app's config file before shutting down. ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: SSH login with expired password
    ... HP TCP/IP Services for OpenVMS Industry Standard 64 Version V5.6 ... Using that parameter in TCPIP 5.5 (on VMS 8.2-1) gets me this: ... Unrecognized configuration parameter 'AllowNonvmsLoginWithExpiredPw'. ... parse some variables from config file 'ssh2/sshd2_config'. ...
    (comp.os.vms)
  • Re: BizTalk 2004 Configuration Data
    ... orchestration assemblies are loaded into application domains - not my ... custom assemblies. ... specific and custom configuration file for an app domain I must ... This way you end up with a specific .config file ...
    (microsoft.public.biztalk.general)