kyters / jlibs

Automatically exported from code.google.com/p/jlibs
1 stars 0 forks source link

Support inner classes in DAO code generator #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use @Table on an inner class

What is the expected output? What do you see instead?

The generated code does not import the inner class, so it's not visible.

What version of the product are you using? On what operating system?

935

Please provide any additional information below.

Just need to add an import statement to the generated code when needed; 
something like:

if ( !printer.clazz.class.getCanonicalName()
       .equals(printer.clazz.class.getPackage().getName() + "." +
               printer.clazz.class.getSimpleName()) )
  printer.importClass(printer.clazz);

Original issue reported on code.google.com by eire...@gmail.com on 19 Apr 2011 at 7:16

GoogleCodeExporter commented 9 years ago
Fixed r1497

Original comment by santhosh.tekuri@gmail.com on 20 Apr 2011 at 5:02