<commit_before>/*
 * JBILLING CONFIDENTIAL
 * _____________________
 *
 * [2003] - [2012] Enterprise jBilling Software Ltd.
 * All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Enterprise jBilling Software.
 * The intellectual and technical concepts contained
 * herein are proprietary to Enterprise jBilling Software
 * and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden.
 */

package com.sapienter.jbilling.server.item;

import com.sapienter.jbilling.server.item.validator.ItemTypes;
import com.sapienter.jbilling.server.pricing.PriceModelWS;
import com.sapienter.jbilling.server.security.WSSecured;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.validation.constraints.Digits;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;

public class ItemDTOEx implements WSSecured, Serializable {

    // ItemDTO
    private Integer id;
    @NotNull(message = "validation.error.notnull")
   	@Size(min=1,max=50, message="validation.error.size,1,50")
    private String number;
    @Size (min=0,max=50, message="validation.error.size,1,50")
    private String glCode;
    @Digits(integer=3, fraction=4, message="validation.error.invalid.number.or.fraction")
    private String percentage;
    private Integer[] excludedTypes = null;
    private Integer hasDecimals;
    private Integer deleted;
    private Integer entityId;
    private PriceModelWS defaultPrice;

    // *** ItemDTOEx ***
    @NotNull @Size (min=1,max=100, message="validation.error.size,1,100")
    private String description = null;
    @ItemTypes
    private Integer[] types = null;
    private String promoCode = null;
    private Integer currencyId = null;
    @Digits(integer=30, fraction=10, message="validation.error.not.a.number")
    private String price = null;
    private Integer orderLineTypeId = null;

    public ItemDTOEx() {
    }

    public ItemDTOEx(Integer id,String number, String glCode, Integer entity, String description, 
                     Integer deleted, Integer currencyId, BigDecimal price, BigDecimal percentage,
                     Integer orderLineTypeId, Integer hasDecimals) {
<commit_msg>Bugs #2301 Exception is occurred when user click on 'Save Changes' button without enter the data into any text field.<commit_after>/*
 * JBILLING CONFIDENTIAL
 * _____________________
 *
 * [2003] - [2012] Enterprise jBilling Software Ltd.
 * All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Enterprise jBilling Software.
 * The intellectual and technical concepts contained
 * herein are proprietary to Enterprise jBilling Software
 * and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden.
 */

package com.sapienter.jbilling.server.item;

import com.sapienter.jbilling.server.item.validator.ItemTypes;
import com.sapienter.jbilling.server.pricing.PriceModelWS;
import com.sapienter.jbilling.server.security.WSSecured;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.validation.constraints.Digits;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;

public class ItemDTOEx implements WSSecured, Serializable {

    // ItemDTO
    private Integer id;
    @NotNull(message = "validation.error.notnull")
   	@Size(min=1,max=50, message="validation.error.size,1,50")
    private String number;
    @Size (min=0,max=50, message="validation.error.size,1,50")
    private String glCode;
    @Digits(integer=3, fraction=4, message="validation.error.invalid.number.or.fraction")
    private String percentage;
    private Integer[] excludedTypes = null;
    private Integer hasDecimals;
    private Integer deleted;
    private Integer entityId;
    private PriceModelWS defaultPrice;

    // *** ItemDTOEx ***
    @NotNull(message = "validation.error.notnull")
    @Size (min=1,max=100, message="validation.error.size,1,100")
    private String description = null;
    @ItemTypes
    private Integer[] types = null;
    private String promoCode = null;
    private Integer currencyId = null;
    @Digits(integer=30, fraction=10, message="validation.error.not.a.number")
    private String price = null;
    private Integer orderLineTypeId = null;

    public ItemDTOEx() {
    }

    public ItemDTOEx(Integer id,String number, String glCode, Integer entity, String description, 
                     Integer deleted, Integer currencyId, BigDecimal price, BigDecimal percentage,
                     Integer orderLineTypeId, Integer hasDecimals) {

{'fraction_non_alphanumeric': 0.0916968964127368, 'fraction_numerical': 0.014510278113663845, 'mean_word_length': 4.175182481751825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6269643', 'n_tokens_mistral': 1420, 'n_tokens_neox': 1367, 'n_words': 396}