Created
July 14, 2011 15:12
-
-
Save sebersole/1082637 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initial prototype/sandbox for notion of "orchestrated information collection from sources" ~~~~~~~~~~~~~~~~~~~~~~ | |
private static enum SimpleAttributeNature { BASIC, MANY_TO_ONE, ONE_TO_ONE, ANY }; | |
private interface SimpleAttributeSource { | |
public String getName(); | |
public ExplicitHibernateTypeSource getTypeInformation(); | |
public String getPropertyAccessorName(); | |
public boolean isInsertable(); | |
public boolean isUpdatable(); | |
public PropertyGeneration getGeneration(); | |
public boolean isLazy(); | |
public boolean isIncludedInOptimisticLocking(); | |
public SimpleAttributeNature getNature(); | |
public boolean isVirtualAttribute(); | |
public RelationValueMetadataSource getValueInformation(); | |
public Iterable<MetaAttributeSource> metaAttributes(); | |
} | |
private interface ExplicitHibernateTypeSource { | |
public String getName(); | |
public Map<String,String> getParameters(); | |
} | |
private interface MetaAttributeSource { | |
public String getName(); | |
public String getValue(); | |
public boolean isInheritable(); | |
} | |
private static interface RelationValueMetadataSource { | |
public String getColumnAttribute(); | |
public String getFormulaAttribute(); | |
public List getColumnOrFormulaElements(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment