Skip to content

Instantly share code, notes, and snippets.

@sebersole
Created July 14, 2011 15:12
Show Gist options
  • Save sebersole/1082637 to your computer and use it in GitHub Desktop.
Save sebersole/1082637 to your computer and use it in GitHub Desktop.
// 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