Package org.jpox.store.mapped.mapping

Examples of org.jpox.store.mapped.mapping.VersionMapping


        if (versionMetaData != null && versionMetaData.getFieldName() == null)
        {
            if (versionMetaData.getVersionStrategy() == VersionStrategy.NONE)
            {
                // No optimistic locking but the idiot wants a column for that :-)
                versionMapping = new VersionMapping(dba, this, dba.getMapping(Long.class, storeMgr));
            }
            else if (versionMetaData.getVersionStrategy() == VersionStrategy.VERSION_NUMBER)
            {
                versionMapping = new VersionMapping(dba, this, dba.getMapping(Long.class, storeMgr));
            }
            else if (versionMetaData.getVersionStrategy() == VersionStrategy.DATE_TIME)
            {
                versionMapping = new VersionMapping(dba, this, dba.getMapping(Timestamp.class, storeMgr));
            }
        }

        // Add Discriminator where specified in MetaData
        DiscriminatorMetaData dismd = cmd.getDiscriminatorMetaDataForTable();
View Full Code Here

TOP

Related Classes of org.jpox.store.mapped.mapping.VersionMapping

Copyright © 2018 www.massapicom. 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.