Package org.internna.ossmoney.model

Examples of org.internna.ossmoney.model.Investment.belongsTo()


      UserDetails user = UserDetails.findCurrentUser();
      String currency = "EUR";
      Investment investment = Investment.findInvestment(id);
      Set<InvestmentPrice> prices = new TreeSet<InvestmentPrice>();
      Set<InvestmentPrice> datedPrices = new TreeSet<InvestmentPrice>();
      if (investment.belongsTo(user)) {
        if (investment.getLocale() != null) {
          Locale locale = investment.getLocale();
          Currency investmentCurrency = Currency.getInstance(locale);
          currency = investmentCurrency.getCurrencyCode();
        }
View Full Code Here


      InvestmentPrice price = InvestmentPrice.findInvestmentPrice(priceId);
      if (price == null) {
        price = new InvestmentPrice();
        investment.addPrice(price);
      }
      if ((investment != null) && investment.belongsTo(user) && price.belongsTo(investment)) {
        price.setPrice(amount);
        price.setUpdateTime(operationDate);
        if (price.getId() != null) {
          price.merge();
        } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.