Examples of Basic


Examples of net.sourceforge.jpaxjc.ns.persistence.orm.Basic

    {
        boolean mapped = false;

        if ( !mapped && this.isBasicFieldOutline( f ) )
        {
            final Basic basic = new Basic();
            if ( f.getPropertyInfo().isOptionalPrimitive() )
            {
                basic.setOptional( true );
            }

            basic.setName( f.getPropertyInfo().getName( false ) );
            basic.setColumn( this.toColumn( f.getPropertyInfo().getSchemaComponent() ) );
            this.toTemporal( f, basic );
            a.getBasic().add( basic );
            mapped = true;
        }
View Full Code Here

Examples of net.sourceforge.jpaxjc.ns.persistence.orm.Basic

        return true;
    }

    private Basic toTemporalBasic( final FieldOutline f )
    {
        final Basic b = new Basic();
        b.setName( "jpa" + f.getPropertyInfo().getName( true ) );
        b.setTemporal( TemporalType.TIMESTAMP );

        this.generateTemporalBasic( f );

        return b;
    }
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Basic

        //
        // basic: cmp-fields
        //
        for (CmpField cmpField : bean.getCmpField()) {
            if (!primaryKeyFields.contains(cmpField.getFieldName())) {
                Field field = new Basic(cmpField.getFieldName());
                mapping.addField(field);
            }
        }
    }
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Basic

            if (!primaryKeyFields.contains(fieldName)) {
                MappedSuperclass superclass = superclassByField.get(fieldName);
                if (superclass == null) {
                    throw new IllegalStateException("Primary key field " + fieldName + " is not defined in class " + ejbClassName + " or any super classes");
                }
                superclass.addField(new Basic(fieldName));
                mapping.addField(new AttributeOverride(fieldName));
            }
        }

        return new HashSet<MappedSuperclass>(superclassByField.values());
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Basic

        //
        // basic: cmp-fields
        //
        for (CmpField cmpField : bean.getCmpField()) {
            if (!primaryKeyFields.contains(cmpField.getFieldName())) {
                Field field = new Basic(cmpField.getFieldName());
                mapping.addField(field);
            }
        }
    }
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Basic

            if (!primaryKeyFields.contains(fieldName)) {
                MappedSuperclass superclass = superclassByField.get(fieldName);
                if (superclass == null) {
                    throw new IllegalStateException("Primary key field " + fieldName + " is not defined in class " + ejbClassName + " or any super classes");
                }
                superclass.addField(new Basic(fieldName));
                mapping.addField(new AttributeOverride(fieldName));
            }
        }

        return new HashSet<MappedSuperclass>(superclassByField.values());
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Basic

                final MappedSuperclass superclass = superclassByField.get(fieldName);
                // if this field is defined by one of the superclasses, then
                // we need to provide a mapping for this.
                if (superclass != null) {
                    // we need to mark this as being in one of the superclasses
                    superclass.addField(new Basic(fieldName));
                    mapping.addField(new AttributeOverride(fieldName));
                } else {
                    // directly generated.
                    mapping.addField(new Basic(fieldName));
                }
            }
        }
        // all of the fields should now be identified by type, so return a set of
        // the field mappings
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Basic

            if (!primaryKeyFields.contains(fieldName)) {
                final MappedSuperclass superclass = superclassByField.get(fieldName);
                if (superclass == null) {
                    throw new IllegalStateException("CMP field " + fieldName + " is not defined in class " + ejbClassName + " or any super classes");
                }
                superclass.addField(new Basic(fieldName));
                mapping.addField(new AttributeOverride(fieldName));
            }
        }

        // all of the fields should now be identified by type, so return a set of
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Basic

                final MappedSuperclass superclass = superclassByField.get(fieldName);
                // if this field is defined by one of the superclasses, then
                // we need to provide a mapping for this.
                if (superclass != null) {
                    // we need to mark this as being in one of the superclasses
                    superclass.addField(new Basic(fieldName));
                    mapping.addField(new AttributeOverride(fieldName));
                } else {
                    // directly generated.
                    mapping.addField(new Basic(fieldName));
                }
            }
        }
        // all of the fields should now be identified by type, so return a set of
        // the field mappings
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Basic

            if (!primaryKeyFields.contains(fieldName)) {
                final MappedSuperclass superclass = superclassByField.get(fieldName);
                if (superclass == null) {
                    throw new IllegalStateException("CMP field " + fieldName + " is not defined in class " + ejbClassName + " or any super classes");
                }
                superclass.addField(new Basic(fieldName));
                mapping.addField(new AttributeOverride(fieldName));
            }
        }

        // all of the fields should now be identified by type, so return a set of
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.