protected AnnotationInstance parserCollectionTable(JaxbCollectionTable collectionTable, AnnotationTarget target) { if ( collectionTable == null ) { return null; } DefaultConfigurationHelper.INSTANCE.applyDefaults( new SchemaAware.CollectionTableSchemaAware( collectionTable ), getDefaults() ); List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", collectionTable.getName(), annotationValueList ); MockHelper.stringValue( "catalog", collectionTable.getCatalog(), annotationValueList ); MockHelper.stringValue( "schema", collectionTable.getSchema(), annotationValueList ); nestedJoinColumnList( "joinColumns", collectionTable.getJoinColumn(), annotationValueList ); nestedUniqueConstraintList( "uniqueConstraints", collectionTable.getUniqueConstraint(), annotationValueList ); return create( COLLECTION_TABLE, target, annotationValueList ); }
protected AnnotationInstance parserCollectionTable(JaxbCollectionTable collectionTable, AnnotationTarget target) { if ( collectionTable == null ) { return null; } DefaultConfigurationHelper.INSTANCE.applyDefaults( new SchemaAware.CollectionTableSchemaAware( collectionTable ), getDefaults() ); List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", collectionTable.getName(), annotationValueList ); MockHelper.stringValue( "catalog", collectionTable.getCatalog(), annotationValueList ); MockHelper.stringValue( "schema", collectionTable.getSchema(), annotationValueList ); nestedJoinColumnList( "joinColumns", collectionTable.getJoinColumn(), annotationValueList ); nestedUniqueConstraintList( "uniqueConstraints", collectionTable.getUniqueConstraint(), annotationValueList ); return create( COLLECTION_TABLE, target, annotationValueList ); }