-
Notifications
You must be signed in to change notification settings - Fork 868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Hibernate xml codegeneration #210
Comments
Could you post the sources of Customer, Contact and CustomerContact? I need probably also the mapping parts of these classes to be able to reproduce the problem. |
Hi there Here are the sources: Customer.java public class Customer extends Person<CustomerContact, CustomerHistory> implements UDFSupport {
} Person.java public class Person<T extends Contact, H extends HistoryEntity> extends
} CustomerContact.java public class CustomerContact extends Contact { Contact.java public abstract class Contact extends AuditableEntity {
} Mapping file Customer.hbm.xml
CustomerContact.hbm.xml
I checked every Version from 2.5 to 2.7. The problem can be reproduced with every version. |
I need all the mapping files for the files you provide. Also there seem to be some type parameters for Person missing. Looks like incomplete mapping information, but I really need more data to provide a definite answer. |
Hi there The sources and mapping files can be downloaded here: http://mogwai.svn.sourceforge.net/viewvc/mogwai/trunk/mogwai/jee-ddd/ See the domain maven module for java classes, the infrastructure module for mapping files. You can compile it out of the box using mvn clean to reproduce the problem. Regards |
Could you point me directly to the HBM files and post the error you get when building mogwai? I couldn't find Hibernate mapping files in the infrastructure project and the build succeeded. |
Any progress on this issue from your side? |
Please check again, i forgot to commit some stuff.. Just run mvn clean compile on the parent pom. |
Released in 2.7.3 |
Hi there
As written in https://groups.google.com/forum/#!topic/querydsl/_uUy9vrblrg this is a new bug report.
With QueryDSL 2.7.0, the Hibernate to XML code generator generates not compileable sources.
he problem is the following mapping in customer.hbm.xml:
This is generated in QCustomer.java as
public final SetPath<Contact, Path> contacts = this.<Contact, Path>createSet("contacts", Contact.class, Path.class);
This is leading to compiler errors, as the Path class does not extend the SimpleExpression class, it is just an interface. What about the following:
public final SetPath<Contact, SimplePath> contacts = this.<Contact, SimplePath>createSet("contacts", Contact.class, SimplePath.class);
Regards
Mirko
The text was updated successfully, but these errors were encountered: