study notes
  • Introduction
  • Oct 14, 2016
  • Oct 22, 2016
  • Oct 27
  • Nov1
  • j2ee context root(4.19.2017)
  • June 20, 2017(bTrade debug record)
  • Sep 5, 2017
  • Jan 4, 2018
  • Jan 5, 2018Deploy war file to Tomcat
  • Jan 13,2018, hibernate config
  • conflict caused by PR
  • using another project's class
  • intellij cannot resolve the symbols in target folder
  • keyboard symbol
  • Oct 31, 2018
  • tax build construction simplify &effecticent
  • line ending
  • memory leak
  • Serializable
  • To learn
  • What happens when you type 'google.com' into a browser and press Enter?
  • security scan for software
Powered by GitBook
On this page

Was this helpful?

June 20, 2017(bTrade debug record)

Previousj2ee context root(4.19.2017)NextSep 5, 2017

Last updated 5 years ago

Was this helpful?

1:

The number of parameters needed in the front end is less the better.

2:

define the

3:

the parameters in RestAPI( @PathVariable) must be object.

4:

List list= this.hibernateTemplate.find("select a.avail_balance from Account a, where a.acct_num=?", new Object[] {accNumber});

get get the availBalance from the account table in database with the acct_num==accNumber.

this.hibernateTemplate.find return list;

5:

url : '' + $scope.tradeType + '/abc/45/65/2/5432/'

set the info in the front-end to test the front-end and back-end together check the info whether can be saved in the database. the "/" in the end is needed. otherwise the last number would be int not double or float.

6:

<property name="annotatedClasses" value="com.btrade.server.entity.Account, com.btrade.server.entity.AccountType, com.btrade.server.entity.Profile, com.btrade.server.entity.SubType,com.btrade.server.entity.Task,com.btrade.server.entity.Trade,com.btrade.server.entity.Stock"/>

create the tables: Account, AccountType, Profile, ....Stock in database.

in applicationcontext.xml

http://localhost:8080/bTradeServer/trading/345/