Coder Social home page Coder Social logo

about primary key about android-orm HOT 3 CLOSED

jamling avatar jamling commented on July 3, 2024
about primary key

from android-orm.

Comments (3)

Jamling avatar Jamling commented on July 3, 2024

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.

sumincy avatar sumincy commented on July 3, 2024

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.

Jamling avatar Jamling commented on July 3, 2024

Thank you for your feedback, I will fix it later

from android-orm.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.