Package org.exolab.castor.xml.schema.annotations.jdo

Examples of org.exolab.castor.xml.schema.annotations.jdo.OneToOne


        appInfos = annotation.getAppInfo();
        appInfo = (AppInfo) appInfos.nextElement();
        jdoContent = appInfo.getJdoContent();

        assertEquals(1, jdoContent.size());
        OneToOne oneToOne = (OneToOne) jdoContent.get(0);
        assertEquals("author_id", oneToOne.getName());
        assertTrue(oneToOne.isDirty());
        assertTrue(oneToOne.isReadOnly());
       
       
    }
View Full Code Here


                            fNature.setColumnType(column.getType());
                            fNature.setReadOnly(column.isReadOnly());
                            fNature.setDirty(false);
                            fNature.setDirty(column.getDirty());
                        } else if (tmpObject instanceof OneToOne) {
                            OneToOne relation = (OneToOne) tmpObject;
                            fInfo.addNature(JDOOneToOneNature.class.getName());
                            JDOOneToOneNature oneNature = new JDOOneToOneNature(fInfo);
                            oneNature.addForeignKey(relation.getName());
                            oneNature.setDirty(relation.isDirty());
                            oneNature.setReadOnly(relation.isReadOnly());
                        } else if (tmpObject instanceof OneToMany) {
                            OneToMany relation = (OneToMany) tmpObject;
                            fInfo.addNature(JDOOneToManyNature.class.getName());
                            JDOOneToManyNature manyNature = new JDOOneToManyNature(fInfo);
                            manyNature.addForeignKey(relation.getName());
                            manyNature.setDirty(relation.isDirty());
                            manyNature.setReadOnly(relation.isReadOnly());
                        }
                    }
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.exolab.castor.xml.schema.annotations.jdo.OneToOne

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.