Comments (3)
The batchInsert
will ignore the Primary Key
column, and the PK check is optional in insert
, the concrete exception is not dealt, can you send me the detail ORMException stack? I need it to get real cause.
from android-orm.
ok, the error caused by the NullPointException : pk.equals(colName) when i did not define the annotation "id" . the pk is empty.
1 cn.ieclipse.aorm.ORMException:java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
2 cn.ieclipse.aorm.Session$Row.(Session.java:852)
3 ......
4 Caused by:
5 java.lang.NullPointerException:Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
6 cn.ieclipse.aorm.Session$Row.(Session.java:842)
7 cn.ieclipse.aorm.Session.insert(Session.java:184)
8 cn.ieclipse.aorm.Session.insert(Session.java:202)
9 com.huateng.merchant.ui.activity.browse.ActivityAboutUs$1$2.onClick(ActivityAboutUs.java:116)
10 android.view.View.performClick(View.java:4909)
11 android.view.View$PerformClick.run(View.java:20390)
12 android.os.Handler.handleCallback(Handler.java:815)
13 android.os.Handler.dispatchMessage(Handler.java:104)
14 android.os.Looper.loop(Looper.java:194)
15 android.app.ActivityThread.main(ActivityThread.java:5860)
16 java.lang.reflect.Method.invoke(Native Method)
17 java.lang.reflect.Method.invoke(Method.java:372)
18 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1019)
19 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:814)
from android-orm.
Thank you for your feedback, I will fix it later
from android-orm.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-orm.