Package net.sourceforge.jpaxjc.ns.persistence.orm

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


            for ( Entity e : orm.getEntity() )
            {
                if ( e.getAttributes() == null )
                {
                    e.setAttributes( new Attributes() );
                }

                this.addMandatoryAttributes( orm, e.getAttributes(), this.getClassOutline( model, e.getClazz() ) );
            }
View Full Code Here


            entity.setName( name );
        }
        if ( entity.getAttributes() == null )
        {
            entity.setAttributes( new Attributes() );
        }

        this.toAttributes( outline, c, entity.getAttributes() );

        this.customizeEntity( c.target.getCustomizations(), entity );
View Full Code Here

        {
            mappedSuperclass.setClazz( c.implClass.binaryName() );
        }
        if ( mappedSuperclass.getAttributes() == null )
        {
            mappedSuperclass.setAttributes( new Attributes() );
        }

        this.toAttributes( outline, c, mappedSuperclass.getAttributes() );

        this.customizeMappedSuperclass( c.target.getCustomizations(), mappedSuperclass );
View Full Code Here

            {
                if ( a.getId().isEmpty() )
                {
                    if ( c.getSuperClass() != null )
                    {
                        final Attributes attr = getAttributes( orm, c.getSuperClass().implClass.binaryName() );
                        recurseAddId( orm, attr, c.getSuperClass() );
                    }
                    else
                    {
                        final Id id = new Id();
                        final GeneratedValue gv = new GeneratedValue();
                        final Column col = new Column();
                        a.getId().add( id );

                        gv.setStrategy( GenerationType.AUTO );
                        col.setScale( 0 );
                        col.setPrecision( 20 );
                        col.setNullable( false );
                        id.setName( "jpaId" );
                        id.setGeneratedValue( gv );
                        id.setColumn( col );

                        generateProperty( id.getName(), Long.TYPE, c );
                    }
                }
            }

            void recurseAddVersion( final EntityMappings orm, final Attributes a, final ClassOutline c )
            {
                if ( a.getVersion().isEmpty() )
                {
                    if ( c.getSuperClass() != null )
                    {
                        final Attributes attr = getAttributes( orm, c.getSuperClass().implClass.binaryName() );
                        if ( attr != null )
                        {
                            this.recurseAddVersion( orm, attr, c.getSuperClass() );
                        }
                    }
View Full Code Here

                    entity.getAttributeOverride().add( e );
                    acknowledge = true;
                }
                else if ( c.element.getLocalName().equals( "attributes" ) )
                {
                    final Attributes e = JAXB.unmarshal( new DOMSource( c.element ), Attributes.class );
                    entity.setAttributes( e );
                    acknowledge = true;
                }

                if ( acknowledge && !c.isAcknowledged() )
View Full Code Here

                    ms.setPostLoad( e );
                    acknowledge = true;
                }
                else if ( c.element.getLocalName().equals( "attributes" ) )
                {
                    final Attributes e = JAXB.unmarshal( new DOMSource( c.element ), Attributes.class );
                    ms.setAttributes( e );
                    acknowledge = true;
                }

                if ( acknowledge && !c.isAcknowledged() )
View Full Code Here

        {
            if ( e.getClazz().equals( className ) )
            {
                if ( e.getAttributes() == null )
                {
                    e.setAttributes( new Attributes() );
                }

                return e.getAttributes();
            }
        }

        for ( MappedSuperclass e : orm.getMappedSuperclass() )
        {
            if ( e.getClazz().equals( className ) )
            {
                if ( e.getAttributes() == null )
                {
                    e.setAttributes( new Attributes() );
                }

                return e.getAttributes();
            }
        }
View Full Code Here

            {
                if ( a.getId().isEmpty() )
                {
                    if ( c.getSuperClass() != null )
                    {
                        final Attributes attr = getAttributes( orm, c.getSuperClass().implClass.binaryName() );
                        recurseAddId( orm, attr, c.getSuperClass() );
                    }
                    else
                    {
                        final Id id = new Id();
View Full Code Here

            {
                if ( a.getVersion().isEmpty() )
                {
                    if ( c.getSuperClass() != null )
                    {
                        final Attributes attr = getAttributes( orm, c.getSuperClass().implClass.binaryName() );
                        if ( attr != null )
                        {
                            this.recurseAddVersion( orm, attr, c.getSuperClass() );
                        }
                    }
View Full Code Here

TOP

Related Classes of net.sourceforge.jpaxjc.ns.persistence.orm.Attributes

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.