@Generated(value="org.nuiton.jpa.templates.JpaEntityTransformer", date="Wed Sep 11 18:18:21 CEST 2013") @MappedSuperclass public abstract class AbstractJpaArticle extends org.nuiton.jpa.api.AbstractJpaEntity implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
code |
protected Company |
company |
protected String |
description |
protected boolean |
directWithdrawAllowed |
protected Set<Location> |
fixedLocations |
protected boolean |
fixedLocationsFirst |
protected String |
id |
static String |
PROPERTY_CODE |
static String |
PROPERTY_COMPANY |
static String |
PROPERTY_DESCRIPTION |
static String |
PROPERTY_DIRECT_WITHDRAW_ALLOWED |
static String |
PROPERTY_FIXED_LOCATIONS |
static String |
PROPERTY_FIXED_LOCATIONS_FIRST |
static String |
PROPERTY_ID |
static String |
PROPERTY_SUPPLIER |
static String |
PROPERTY_UNIT |
protected Supplier |
supplier |
protected String |
unit |
| Constructor and Description |
|---|
AbstractJpaArticle() |
public static final String PROPERTY_ID
public static final String PROPERTY_DESCRIPTION
public static final String PROPERTY_CODE
public static final String PROPERTY_UNIT
public static final String PROPERTY_FIXED_LOCATIONS_FIRST
public static final String PROPERTY_DIRECT_WITHDRAW_ALLOWED
public static final String PROPERTY_FIXED_LOCATIONS
public static final String PROPERTY_SUPPLIER
public static final String PROPERTY_COMPANY
protected String id
protected String description
protected String code
protected String unit
protected boolean fixedLocationsFirst
protected boolean directWithdrawAllowed
protected Supplier supplier
protected Company company
public void prePersist()
public String getId()
getId in interface org.nuiton.jpa.api.JpaEntitypublic void setId(String id)
public String getDescription()
public void setDescription(String description)
public String getCode()
public void setCode(String code)
public String getUnit()
public void setUnit(String unit)
public boolean isFixedLocationsFirst()
public void setFixedLocationsFirst(boolean fixedLocationsFirst)
public boolean isDirectWithdrawAllowed()
public void setDirectWithdrawAllowed(boolean directWithdrawAllowed)
public Location getFixedLocations(int index)
public boolean isFixedLocationsEmpty()
public int sizeFixedLocations()
public void addFixedLocations(Location fixedLocations)
public void addAllFixedLocations(Collection<Location> fixedLocations)
public boolean removeFixedLocations(Location fixedLocations)
public boolean removeAllFixedLocations(Collection<Location> fixedLocations)
public boolean containsFixedLocations(Location fixedLocations)
public boolean containsFixedLocationsById(String id)
public boolean containsAllFixedLocations(Collection<Location> fixedLocations)
public Supplier getSupplier()
public void setSupplier(Supplier supplier)
public Company getCompany()
public void setCompany(Company company)
protected <T> T getChild(Collection<T> childs, int index)
Copyright © 2013 CodeLutin. All rights reserved.