public class SdbMappingUtils {
private static long ioffset = Math.abs(0L+Integer.MIN_VALUE);
public static String getDomainName(Class<?> clazz, String prefix) {
ClassInfo ci = ClassInfo.getClassInfo(clazz);
if(ClassInfo.isAutoIncrement(ci.getIdField())){
throw new SienaRestrictedApiException("DB", "getItemName", "@Id AUTO_INCREMENT not supported by SDB");
}
String domain = prefix + ci.tableName;
return domain;
}