javabank | Native Java bindings for Mountebank | Wrapper library
kandi X-RAY | javabank Summary
kandi X-RAY | javabank Summary
Native Java bindings for Mountebank.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of javabank
javabank Key Features
javabank Examples and Code Snippets
Community Discussions
Trending Discussions on javabank
QUESTION
I made a simple console application in java, it is about bank, we can create accounts, then deposit money and do other transaction withing account, till now it is just in memory application, now I want to store account data and transaction logs in pgsql db.
I made a new DAO file, so i can import function in account DAO and transaction DAO.
What I want is to run this code before any database functions are called
...ANSWER
Answered 2020-Aug-04 at 07:04For this kind of application, I suggest you to use spring and hibernate, if you don't want to use it, then you should not open connection in every method. Open connection globally and set conn.setAutoCommit(true);
and after each method call some command is executed and automatically commited. Commonly opening and closing connection can make problems if methods are called often.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install javabank
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page