ebean-orm-tools / finder-generator

Code generator for avaje-ebeanorm-typequery
Apache License 2.0
2 stars 3 forks source link

Not valid Assoc beans generated, when more entityBeanPackage provided in generator #8

Closed vilmosnagy closed 9 years ago

vilmosnagy commented 9 years ago

Hi!

If I'm right I can provide more package to the generator, as the the entity beans' package, because the MetaReader will split them by ,

In that case wrong QAssocBeans will be generated, 'casue the import statement will contain each package, in one line.

For example:

import org.example.domain,org.example.enums.Address;

For a full example, see: https://github.com/vilmosnagy/avaje-ebeanorm-examples/tree/bugs/typequery_more_package/a-basic

rbygrave commented 9 years ago

Note: I reviewed the code after the merge and noted that the code was removing and then adding the entity bean class to the imports (which it really didn't need to do). So the later commit actually removed those lines of code. The net result is the same, fixing the import of the entity bean class on associated beans when the package is a comma delimited list.

So I am happy with this fix.