-
Notifications
You must be signed in to change notification settings - Fork 10
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
Hibernate integration #3
Comments
About my second question : |
A version from the original author is available on maven: The version provided here on github has a few bug fixes and some new features, but is not submitted to maven. We use it on a private nexus server. |
Would you mind publishing this project on a public nexus? I guess you have other things to do then, if you prefer, I'd be willing to try to do it for you ? Even if I'm more used to gradle/artifactory/gitlab than maven/nexus/github I think I can help you with that. |
Until then, I forked the project and published on my own private artifactory. Small questions:
Thank you per advance. And thank you again for all this work on the bugfixes / new features. |
I tried by importing only dao-hibernate and by using genericdao.dao.hibernate.GenericDAO. It seems globally ok. Here is my project's abstract DAO: package fr.skytale.databaselib.database.parent;
import com.googlecode.genericdao.dao.hibernate.GenericDAO;
import com.googlecode.genericdao.dao.hibernate.GenericDAOImpl;
import fr.skytale.databaselib.DatabaseLib;
import org.hibernate.SessionFactory;
import java.io.Serializable;
public abstract class ADAO<T, ID extends Serializable> extends GenericDAOImpl<T, ID> implements GenericDAO<T, ID> {
protected final DatabaseLib databaseLib;
public ADAO(DatabaseLib databaseLib) {
this.databaseLib = databaseLib;
final SessionFactory sessionFactory = databaseLib.getSessionFactory();
setSessionFactory(sessionFactory);
}
} If you see any issue in this way of using this project please tell me. Thank you anyway. |
|
I don't managed to make it work without spring yet. I will keep you posted. |
I managed to make it work but I had to manually implement transaction management. |
Hello,
I would like to integrate this project into a gradle hibernate project.
Thank you for your work !
The text was updated successfully, but these errors were encountered: