Example #1
0
 /** @param property */
 private void markAsUseInEquals(Property property) {
   Map m = new HashMap();
   MetaAttribute ma = new MetaAttribute("use-in-equals");
   ma.addValue("true");
   m.put(ma.getName(), ma);
   property.setMetaAttributes(m);
 }
Example #2
0
  private Property bindMeta(Property property, TableIdentifier identifier) {
    Iterator columnIterator = property.getValue().getColumnIterator();
    while (columnIterator.hasNext()) {
      Column col = (Column) columnIterator.next();

      Map map = revengStrategy.columnToMetaAttributes(identifier, col.getName());
      if (map != null) { // TODO: merge from each column ?
        property.setMetaAttributes(map);
      }
    }

    return property;
  }