Skip to content
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

explicitely commit? #27

Open
dueksam opened this issue Dec 20, 2015 · 3 comments
Open

explicitely commit? #27

dueksam opened this issue Dec 20, 2015 · 3 comments

Comments

@dueksam
Copy link

dueksam commented Dec 20, 2015

Currently trying to populate a sqlite database, I just read a very large file line by line, create one object from each line then sess.save(myObject)

It then eats up all my memory and fail... Is there a way to explicitely commit (like sess.commit()) ?

@buggins buggins self-assigned this Dec 20, 2015
@dueksam
Copy link
Author

dueksam commented Dec 22, 2015

I used ddbc to populate the database thanks to Connection.commit() (see related issue though)

Still wondering if this is possible with hibernated...

@buggins
Copy link
Owner

buggins commented Sep 16, 2016

Transaction support is incomplete in hibernated.
Doesn't following code work for you?
sess.close();
sess = factory.openSession();

vnayar pushed a commit to vnayar/hibernated that referenced this issue Oct 17, 2023
@vnayar
Copy link
Contributor

vnayar commented Apr 17, 2024

Support for this has been added in #84. The interface follows the norms of Hibernate. Through a session, you can beginTransaction() to get a Transaction object, on which one can later call .commit() or .rollback().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants