weimingtom / sqlitegen

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

Package hierarchy is not supported #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Put interfaces with sqlitegen annotations into subpackage of root package.

What is the expected output? What do you see instead?
Correspondent classes are to appear in gen folder (or same package hierarchy is 
to be created in gen folder). No files are generated at all instead.

What version of the product are you using? On what operating system?
0.1.18 plugin, 0.1.6 library

Original issue reported on code.google.com by Alexandr...@gmail.com on 3 Aug 2011 at 8:01

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi, a little bit late, but perhaps other people have the same problem:

i implemented a fix for the problem. it's actualy very simple all you have to 
do is add the following lines (martked with +) in PluginSourceInterface.java 
around line 80:

IPackageFragment fragment = root.getPackageFragment(packageName);
+if (!fragment.exists()) {                          +root.createPackageFragment(packageName, true, 
null);
+}
return new PluginSourceWriter(new StringWriter(), fragment, className);

I attached a version of the sqlite plugin with the fix implemented. 
NOTE since i'm not the author this is a inofficial version and used at your own 
risk!

Original comment by gandul...@gmail.com on 2 Jan 2012 at 2:35

Attachments:

GoogleCodeExporter commented 8 years ago
I was very happy to see this, but unfortunately, Indigo on Mac OSX 10.7.3 
doesn't recognize either of these jars as valid.

Original comment by MarkRose...@gmail.com on 5 Feb 2012 at 6:24