This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger


Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. The application is kind of BI ( Business Intelligence ) tool developed on struts spring and hibernate .
2. System will automate the report generation process , i.e kind of query builder ..Which will connect to the data base and user can generate query using user interface ( i.e selecting table/view and select display columns and apply where clause conditions , apply group by and order by condition , output type(pdf/html ) )
and output will be generated based on above conditions
3. This is designed for MySQL data base
4. Earlier the db connection properties are configured in the hibernate.cfg.xml file
5. Now the requirement is Client wants to turn this to dynamic ..i.e In the very first screen user should provide the connection details through screen ...( Server , user name , password ,database )..
6. System should connect the DB based on the properties through application ...Then user generates the queries and generate reports .....

There is one db connection is possible for single deployment ( i.e user can not have more than one db connections , only one is allowed )

But how to change the session object based on user in puts ..
in my case DB is MySQL , User provides following details
1. DB Name
2. Server Location
3. User Name
4. Password

Posts: 9612
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the Hibernate documentation, section, Programmatic Configuration
What I don't understand is how they changed the earth's orbit to fit the metric calendar. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!