Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*  d6 Lightweight O/R mapper for java with ease of use 
  *  Copyright (c) 2006- Tom Misawa,
  *  Permission is hereby granted, free of charge, to any person obtaining a
  *  copy of this software and associated documentation files (the "Software"),
  *  to deal in the Software without restriction, including without limitation
  *  the rights to use, copy, modify, merge, publish, distribute, sublicense,
  *  and/or sell copies of the Software, and to permit persons to whom the
 *  Software is furnished to do so, subject to the following conditions:
 *  The above copyright notice and this permission notice shall be included in
 *  all copies or substantial portions of the Software.
package org.riversun.d6.core;
Field information of the model class

Tom Misawa (
class D6ModelClassFieldInfo {
Column name of the DB table
    public String columnName;
Column type of the DB table
    public String columnType;

Is column type nullable
    public boolean isNullable;

is column primary key
    public boolean isPrimaryKey;

is column auto increment
    public boolean isAutoIncrement;

is column unique
    public boolean isUnique;

Field of the model class
    public Field field;

Field value of the model class
    Object value;
    public String toString() {
        return "D6ModelClassFieldInfo [columnName=" +  + ", columnType=" +  + ", isNullable=" +  + ", isPrimaryKey=" +  + ", isAutoIncrement="
                +  + ", isUnique=" +  + ", field=" +  + "]";
New to GrepCode? Check out our FAQ X