protected AnnotationInstance parserSecondaryTable(JaxbSecondaryTable secondaryTable, AnnotationTarget target) { if ( secondaryTable == null ) { return null; } DefaultConfigurationHelper.INSTANCE.applyDefaults( new SchemaAware.SecondaryTableSchemaAware( secondaryTable ), getDefaults() ); List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", secondaryTable.getName(), annotationValueList ); MockHelper.stringValue( "catalog", secondaryTable.getCatalog(), annotationValueList ); MockHelper.stringValue( "schema", secondaryTable.getSchema(), annotationValueList ); nestedPrimaryKeyJoinColumnList( "pkJoinColumns", secondaryTable.getPrimaryKeyJoinColumn(), annotationValueList ); nestedUniqueConstraintList( "uniqueConstraints", secondaryTable.getUniqueConstraint(), annotationValueList ); return create( SECONDARY_TABLE, target, annotationValueList ); }
protected AnnotationInstance parserSecondaryTable(JaxbSecondaryTable secondaryTable, AnnotationTarget target) { if ( secondaryTable == null ) { return null; } DefaultConfigurationHelper.INSTANCE.applyDefaults( new SchemaAware.SecondaryTableSchemaAware( secondaryTable ), getDefaults() ); List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", secondaryTable.getName(), annotationValueList ); MockHelper.stringValue( "catalog", secondaryTable.getCatalog(), annotationValueList ); MockHelper.stringValue( "schema", secondaryTable.getSchema(), annotationValueList ); nestedPrimaryKeyJoinColumnList( "pkJoinColumns", secondaryTable.getPrimaryKeyJoinColumn(), annotationValueList ); nestedUniqueConstraintList( "uniqueConstraints", secondaryTable.getUniqueConstraint(), annotationValueList ); return create( SECONDARY_TABLE, target, annotationValueList ); }