Open AlexeyZatsepin opened 7 years ago
Hello. SQLite does not provide primary key length long support. You should use Integer.
@Id(PRIMARY_KEY_AUTOINCREMENT = true)
private Integer id;
private String author;
private String title;
private int pagesCount;
private int bookId;
It will work this way...
Thanks, but now I have new exception. I looked through other issues and found that version 1.0.9 must solve this problem, but it doesn't
java.lang.UnsatisfiedLinkError: No implementation found for void jsqlite.Database.internal_init() (tried Java_jsqlite_Database_internal_1init and Java_jsqlite_Database_internal_1init__)
I have such error when try this ORM:
java.lang.IndexOutOfBoundsException: Index: 4, Size: 4 at java.util.ArrayList.get(ArrayList.java:411) at com.onurciner.OHibernate.tableCreate(OHibernate.java:521) at com.onurciner.OHibernate.engine(OHibernate.java:432) at com.onurciner.OHibernate.insert(OHibernate.java:626)
my model:
@Entity(TABLE_NAME = "book", TABLE_OPERATION = Entity.TABLE_OPERATION_TYPE.DROP_AND_CREATE) public class Book{
init:
private OHibernate bookDao = new OHibernate<>(Book.class);