AW: iBator CommentGenerator: Java Model Class with database column comment

2009-03-21 Thread Benjamin Klatt
/** * Utility method to check if a column remark is available * @param introspectedColumn The column to check for a remark * * @return true if a non empty remark is available */ private boolean remarkExists(IntrospectedColumn introspectedColumn){ return introspectedColumn.getRemarks() != null && !"".equals(in

Re: iBator CommentGenerator: Java Model Class with database column comment

2009-03-20 Thread Nicholoz Koka Kiknadze
Wow, took less than 24 hours ;). On Fri, Mar 20, 2009 at 5:23 PM, Jeff Butler wrote: > Support for this is now available in SVN. > > Jeff Butler > > On Fri, Mar 20, 2009 at 6:57 AM, Jeff Butler > wrote: > > Interesting idea. > > > > Ibator does not currently capture database field comments from

Re: iBator CommentGenerator: Java Model Class with database column comment

2009-03-20 Thread Jeff Butler
Support for this is now available in SVN. Jeff Butler On Fri, Mar 20, 2009 at 6:57 AM, Jeff Butler wrote: > Interesting idea. > > Ibator does not currently capture database field comments from the > metadata, so there's no simple way to do this now. > > It's a relatively simple change to add it.

Re: iBator CommentGenerator: Java Model Class with database column comment

2009-03-20 Thread Jeff Butler
Interesting idea. Ibator does not currently capture database field comments from the metadata, so there's no simple way to do this now. It's a relatively simple change to add it. I'd need to change the CommentGenerator interface to expose it - hopefully that won't cause too much trouble for peop

iBator CommentGenerator: Java Model Class with database column comment

2009-03-19 Thread Benjamin-Klatt
Hi all, I am trying to use the comment I modeled in my database to be automatically used in javadoc comment of the data fields within the java data model source code. I started to implement my own commentGenerator, but the method addFieldComment(Field field, FullyQualifiedTable, String columnNa