protected AnnotationInstance parserJoinTable(JaxbJoinTable joinTable, AnnotationTarget target) { if ( joinTable == null ) { return null; } DefaultConfigurationHelper.INSTANCE.applyDefaults( new SchemaAware.JoinTableSchemaAware( joinTable ), getDefaults() ); List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", joinTable.getName(), annotationValueList ); MockHelper.stringValue( "catalog", joinTable.getCatalog(), annotationValueList ); MockHelper.stringValue( "schema", joinTable.getSchema(), annotationValueList ); nestedJoinColumnList( "joinColumns", joinTable.getJoinColumn(), annotationValueList ); nestedJoinColumnList( "inverseJoinColumns", joinTable.getInverseJoinColumn(), annotationValueList ); nestedUniqueConstraintList( "uniqueConstraints", joinTable.getUniqueConstraint(), annotationValueList ); return create( JOIN_TABLE, target, annotationValueList ); }
protected AnnotationInstance parserJoinTable(JaxbJoinTable joinTable, AnnotationTarget target) { if ( joinTable == null ) { return null; } DefaultConfigurationHelper.INSTANCE.applyDefaults( new SchemaAware.JoinTableSchemaAware( joinTable ), getDefaults() ); List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", joinTable.getName(), annotationValueList ); MockHelper.stringValue( "catalog", joinTable.getCatalog(), annotationValueList ); MockHelper.stringValue( "schema", joinTable.getSchema(), annotationValueList ); nestedJoinColumnList( "joinColumns", joinTable.getJoinColumn(), annotationValueList ); nestedJoinColumnList( "inverseJoinColumns", joinTable.getInverseJoinColumn(), annotationValueList ); nestedUniqueConstraintList( "uniqueConstraints", joinTable.getUniqueConstraint(), annotationValueList ); return create( JOIN_TABLE, target, annotationValueList ); }