June 20, 2017(bTrade debug record)
Last updated
Was this helpful?
Last updated
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