Package com.sgs.common.database
This package is responsible for holding all of the objects that can be persisted in the SG V5 System.
Each class is documented to describe the fields contained within, which can be imported or exported in most instances.
-
Class Summary Class Description AccountNumber This class represents Account Numbers which can be pre-entered to prompt for at purchase order receipt in WMSAddress This class represents a mailing, invoice or delivery address for association with a clientAllergen This class represents an Allergen for alerts in the system.AllergenLink Represents the link between an Allergen and a Commodity For example, PineNuts contains the Nut Allergen.AnalyticalWorkCard Represents an analytical work card, used for documenting analytical tests and quality control for regulatory and internal standards.AnalyticalWorkCardSchedule Represents a job schedule for an Analytical Work Card.AnalyticalWorkCardScheduleDetail Provides detailed scheduling information for an Analytical Work Card.AnalyticalWorkCardTest Encapsulates the details of a specific test within an Analytical Work Card.AnalyticalWorkCardTestDetail Stores detailed parameters and thresholds for an Analytical Work Card test.AnalyticalWorkCardTestGroup Groups related tests within an Analytical Work Card.AnalyticalWorkCardTestLog Records log entries for the execution of an Analytical Work Card test.AnalyticalWorkCardVersion Maintains the version history for an Analytical Work Card.Answer This class represents a possible Answer to a QuestionApprovalLog Records audit entries for actions taken during an approval process.ApprovalProcess Represents an instance of an approval process.ApprovalStage Defines an individual stage within an approval process.ApprovalTemplate Defines an approval template outlining the steps and expected completion times for approval processes.ApprovalTemplateStage Represents a specific stage within an Approval Template.Asset Represents a physical asset in the system.AssetFormulaLink Establishes a relationship between an asset and a formula.AssetGroup Represents a group or category of assets.AssetGroupLink Links an individual asset to an asset group.AssetJobLog Logs the usage of assets in various jobs.AssetLog Captures log entries related to asset maintenance and planning.AssetMaintenance Represents a maintenance record for an asset.AssetPlan Defines a scheduled plan for asset maintenance or management.AssetType Categorises assets by type.Bag This class represents a container used during the batching process The purpose of this class is currently for internal use onlyBatch This class represents a Batch.BatchConsumption This class represents inventory consumption in the batching process.BatchFull This class is a full representation of batch data and is used for internal purposes onlyBulkDispense This class represents bulk dispense fulfillments and is for internal purposes onlyBulkPlatform This class represents Bulk Platforms which interact with the SG SystemBulkPlatformTerminalLink This class represents the link between Bulk Platforms and Terminals.BulkRequest This class represents a bulk dispense requests and is for internal purposes onlyChecks This class represents Checks which interact with the SG SystemChecksAnswer This class represents a possible Answer to a QuestionChecksLog This class represents ChecksLog which interact with the SG SystemChecksQuestion This class represents a question which can be asked through aQALink
Questions can also be links or image capture eventsChecksTemplates This class represents ChecksTemplates which allow the user to create templates for a list of Checks.ChecksTemplatesGroup This class represents an ChecksTemplatesGroup for creating template groups in the system.ChecksTemplatesGroupEventLink This class represents an ChecksTemplatesGroupEventLink for assigning system events that will trigger the groups.ChecksTemplatesGroupLink This class represents an ChecksTemplatesGroupLink for placing groups into templates.Client This class represents any Client registered in the system.ColumnProperties For Internal Use OnlyCommodity This class represents a commodity.CommodityGroup Represents a group of commodities.CommodityGroupLink This class represents the link between aCommodity
and aCommodityGroup
CommonIngredient Represents a common ingrdient/commodity.CommonIngredientStep This class represents a Common Ingredient Step.Container This class represents a container in the system A container can be used to hold stock, perform tares and other useful functions SeeContainer.ContainerType
for a list of different types of container that can be usedContainerLink This class represents the link betweenContainer
andStockLocation
This identifies how much of each lot number resides on each pallet/containerCorrectiveActions This class represents the link between customer groups and commodities.Currency This class represents a monetary currency For use inPurchaseOrder
andSalesOrder
CustomerGroup This class represents a group of customers This helps with grouping customers into their parent ownership group for labeling and packaging purposesCustomerGroupCommodity This class represents the link between customer groups and commodities.CustomField This class represents a custom field in the system.CustomFieldLink CustomFieldLink links aCustomField
to aCommodity
.CustomRevisionEntity For Internal Use OnlyCycleCountRun This class represents a Cycle Count Run.DataRequest This class represents a request for data exchange between V5 and Bulk Dispense/External Mechanical SystemsDeviationDetails This class represents the link between customer groups and commodities.Document Represents a document in the system.DocumentChangeLog Records changes made to documents.DocumentPages Represents individual pages of a document.DocumentType Defines the type or category of a document.DocumentVersion Represents a specific version of a document.Formula This class represents a Formula or Recipe in a system This is the header element of a set of instructions for processing at a terminalFormulaSimple Used for internal purposes onlyFormulaStep This class represents a step of a formula A step can be several different actions, seeFormulaStep.FormulaStepType
FormulaStepEdit Modifications to formula steps that are in progressFormulaStepInitialization For internal use onlyHazard This class represents hazards that may be prompted for during system operationHazardLink This class represents the link between Hazards and Commodities This identifies which Commodities need to prompt for which HazardsHibernateObject Represents a base database object in the SGSystem Used for mapping with HibernateHold This class represents a Hold order on a container link Holds can be raised against containerlinks which prevent them from being used/soldJob This class represents a work order headerJobLine This class represents a portion of a Job that is to be completed at a location.JobSalesOrderLink This class represents the link between aJob
and aSalesOrderLine
This allows the system to schedule jobs for particular sales orders and allocate them in advanceJobStat Used for internal purposes onlyLabelFormatSet This class represents a Label Format Set A Label format set is a header for a group of labels The set must declare what printer format type the labels linked to it are formatted inLabelFormatSetLink This class presents the link between LabelFormatSets and the label data This is where a label is defined with a set, type and the label data itselfLabelFormatType This class represents Label Format Types A label format type instructs the system what kind of label exists in theLabelFormatSetLink
table (stock, batch, packaging, etc)LabelPrinter This class represents a Label Printer This needs to be configured to the correct connection method By including/omitting data, the connection method is decided If only a code and description are present, the system will use Windows Print Service to look for a matching printer to the description If an IP and port are specified, the system will attempt to connect via the network to the printer If a directory and username are specified, the system will attempt to FTP the labelLabelPrinterType This class defines a label printer type (make/model/format) This provides additional support to some label format languages such as intermec and zebra SeePrinterType
for a list of supported printer types.Language This class represent languages and their mapping filesLastUsed This class is used to store information on the last stock used for a job This allows the system to pre-assign stock to jobs or remember them to reduce operator inputLinkedImage This class represents images stored against various events and objects in the system The linkedID can refer to a number of tables dependent on the type valueLocation This class represents a location Locations can be either Stock or Production dependent onLocation.LocationType
and can be categorized beyond that withLocation.category
Locations can be physical racks, groups of locations, areas or just a logical grouping of terminals See how locations and terminals are linked withTerminalLocation
LocationGroup This class represents LocationGroup which allows the user to create a location group and assign locations to that group.LocationGroupLink This class represents LocationGroupLink which links locations to location groups.LotContainer This class defines a sub-division of a StockLocation The best example of this would be if inventory is received as LOT 123 but it is received in 5 different bottles, all with different weights, we would use LotContainers to track these stock sub-divisions This differs fromContainer
in that containers may have multiple different lots contained within them, whereas LotContainers pertain to only one lotNotification This class represents a notification sent by the systemOptionalGroup This class represents optional groups Optional groups represent groups of formula steps which may or may not be executed A formula can contain optional groups which in turn provide routinesOrderInformation This class represents OrderInformation which can be used when raisingPurchaseOrder
andSalesOrder
It acts as a holster for additional informationPack This class represents a serialized pack from production This class allows for each pack of a produced item to have it's own unique serial number This allows each individual pack to be traced on it's ownPolicy Represents a policy entity that defines guidelines and procedures within the organisation.PolicySOPLink Represents a link between a Policy and an SOP.PreBatch This class represents a placeholder for Batches When a job is scheduled with 20 batches, 20 PreBatches are created as place holders for the work to be done This allows the SG system to have custom settings on a per batch levelPreStep Deprecated. PreventiveActions This class represents the link between customer groups and commodities.ProductRequest This class logs production requests by informing the SG V5 product terminal of production that has occurred outside of the systemPurchaseOrder This class represents a Purchase Order which can be raised for incoming good receiptPurchaseOrderLine This class represents a line of a purchase orderQAGroup This class represents a question which can be asked through aQALink
Questions can also be links or image capture eventsQAGroupEvent An event which ties a QA group to a commodity, location and/or actionQAGroupLink The link between a QA group and a set of questionsQALink This class represents the link betweenQuestion
and the events by which they appearQALog This class represents the log of a QA event.Question This class represents a question which can be asked through aQALink
Questions can also be links or image capture eventsRackStockLocationLink For internal use onlyReason This class represents a reason which can be selected by an operator for certain events.RegulatoryStandard Represents a regulatory standard in the Pharma and Life Sciences industry.RootCauseAnalysis This class represents the link between customer groups and commodities.SalesLog This class represents actions which have occurred during shipping When items are picked/shipped, a log is generated hereSalesOrder This class represents a sales orderSalesOrderLine This class represents Sales Order Lines The lines make up the contents of a sales orderSalesOrderLineCustomField This class represents a custom field for a sales order line Custom fields can be used to add additional data to labelsSalesOrderLineCustomFieldLink This class linksSalesOrderLineCustomField
to aSalesOrderLine
and provides a place to hold the custom field dataSite This class represents Sites which serve as umbrella location groupsSiteSupplier This class represents the link between Suppliers and Sites Suppliers can be limited to only appear at particular sitesSiteSupplierCommodity This class provides the link betweenSiteSupplier
andCommodity
This has the effect of marking particular SiteSuppliers as providing certain commodities The link is many-to-many If you are not using Sites then you can simply useSupplierCommodity
for this functionSOPCommodityLink Represents a link between an SOP header and a commodity.SOPHeader Represents a header for Standard Operating Procedures (SOP).SOPResponsibility Represents the responsibilities assigned within a Standard Operating Procedure (SOP).SOPStep Represents a step within a Standard Operating Procedure (SOP).SPCCommodity This class provides a wrapper to encapsulate a commodity or formula with additional information for use in anSPCRun
SPCRun This class represents an SPC Run.SPCSample This class represents a single sample taken during anSPCRun
Stock This class represents a Stock header object.StockAssignment This class represents a reservation of a quantity of a particular stock item for a particular job.StockLocation This class represents inventory in a location It provides a location and a quantity from the Stock header recordSuperBatch This class represents a Batch.SupplierCommodity This class represents the link between Suppliers and Commodities By creating links between Suppliers and Commodities, we can reduce the list of goods that appear for receipt when a particular supplier is selected when raising aPurchaseOrder
SupplierCommodityContainer This class takesSupplierCommodity
to the next level by linking a SupplierCommodity to a container This can be used to state that Supplier X provides good Y in container C.SystemLog This class is the main location for logging transactions in the system Most actions performed in the system outside of Sales and QA will be logged hereSystemStatics This class is used to set static variables that the system can call upon at given timesTax A class representing a tax codeTerminal This class represents a terminal in the SG V5 System A terminal can be any instance of the SG V5 Software.TerminalLocation This class represents the link between Terminals and Locations Terminals can have visible locations, both stock and production If no links exist for a given terminal it is assumed to see all locations.Terms Deprecated. Test Encapsulates information about a test.TestImage Represents an image associated with a test.TestStage Defines a stage in the testing process.TestType Categorizes tests by type.Trailer This class represents Trailers which can be used for shipping and receiving goods This particular class forms part of the Trailer Management module, used for tracking and inspecting trailersTransfer This class details a Transfer order between locations or facilities Transfers can be used to schedule stock movementsTransferLine This class is responsible for forming the detail of a Transfer order This informs the system which commodity needs to be movedUnitCommodity This class represents the relationship between commodities and units.UpdateLog This class represents the table that holds the details about module updates Anytime a version update/downgrade happens, it will be logged here.User This class represents an operator of the system They must be setup for users to gain access to the system Rights can be assigned on a per user basisUserGroup Represents a group of users.UserGroupLink Establishes a relationship between a user and a user group.UserLog The UserLog class stores user-centric events These are events simply relating to an operatorUserLogUtil This class is used for internal purposes onlyViewLog Represents a log entry that records when a user views a particular entity in the system.WavePick Used to represent a wave picking order.WeighPrintInfo This class represents WeighPrintInfo which allows the user to be able to enter custom info, weigh a particular item and print a label.WeightUnit This class stores the units by which measurements are taken in the SG v5 System Inventory is stored in a base stocking unit set byCommodity.units
.\ Formula Steps, Purchase Order Lines, SPC Runs, Sales Order Lines and many more aspects of the system are allowed to select their own WeightUnits to reference the quantity fields of each respective object Conversions can be performed to change values between these units viaWeightUnit.conversionRate
or on a commodity specific basis throughUnitCommodity
-
Enum Summary Enum Description Answer.Severity Checks.Status ChecksAnswer.Severity ChecksAnswer.SeverityColor ChecksLog.Status ChecksQuestion.Type The target that is compared to the checks response.ChecksTemplates.Frequency ChecksTemplates.RecurDays ChecksTemplates.ScheduleType ChecksTemplates.Status ChecksTemplatesGroupEventLink.ChecksTemplateGroupEventType Commodity.CommodityType The different types that a commodity can be.Commodity.DenominationType How this good should be sold at a sales order levelCommodity.ExpiryMethod The style by which expiry can be calculated.Commodity.UnitDisplayMode The display mode for PO/SO in Control Center.Container.ContainerType The different types of containers that are used in the system.CorrectiveActions.CorrectiveActionsStatus CycleCountRun.CycleCountRunStatus The status of the cycle runDeviationDetails.DeviationDetailsStatus DeviationDetails.Method DeviationDetails.Severity Formula.ExpiryMode The expiry calculation method for the formula Fixed is based on theCommodity.defExpiryDays
Dynamic is based on the earliest expiry of the added ingredientsFormula.FormulaType Formula Type.Formula.LossType Formula.OperationalMode The operational mode of a batch formula Continuous allows for a batch to be executed X number of times, increasing consumption and production Master batch infers that all work on that job goes into a single batchFormula.ProduceAs Formula.ProductionStyle The method in which production is derived Calculated takes the total weight Input takes a keyed input at batch end Weigh prompts for the total weight on the scale at the batch endFormula.ProductOperationalMode Product job operational types Multi-lot allows for the assignment of a variety of stock for a single commodity rather than just one box/item FIFO assumptions are made on stock so accuracy is less but also it means that operators don't constantly need to change out packaging lot codes/pallets once a run starts Multi-lot key entry performs the same as multi-lot but has a key entry panel rather than a weigh panel.Formula.SignOffMode How the Formula is signed off.Formula.TareMode The tare mode, pertains to product formulas only Calculated adds all the packaging item weights up Prompt asks the operator to weigh the container Preset takes the preset key value set by the tare value Key Entered works like prompt but without the use of a scaleFormulaStep.FormulaStepType The type of a formula step.FormulaStep.LossType The type of loss the step will experience.Job.JobStatus The status of a Job or JobLine.Location.LocationCategory The category of a stock location.Location.LocationType The type of location.Notification.NotificationType The type of notification 0 = Message 1 = Info 2 = Alert 3 = Warning 4 = DangerPreBatch.BatchStatus The status a batchPreventiveActions.PreventiveActionsStatus PurchaseOrder.PurchaseOrderStatus The status of the Purchase OrderQALink.QAEventType The event/point in operation at which this question should be askedQALink.SignOffMode How the Event is signed off.Question.CustomResponseType Question.QAType The type of question to be asked.Reason.ReasonType The place where the reason should be prompted forRootCauseAnalysis.RCAMethod RootCauseAnalysis.RCAStatus SalesOrder.SalesOrderStatus SalesOrderStatus refers to the status of a sales order at a given timeSPCRun.SPCRunResult The result of the SPCRunSPCRun.SPCRunStatus The status of the SPC runTransfer.TransferStatus The current status of the transfer through the processUser.Role User.SupervisorLevel The supervisor level of the operator.User.SystemPrivileges The various options/privileges that can be set per userWavePick.WavePickStatus The current situation of the wave pick.