Comments (2)
I'm not sure I fully understand your question but I would say this:
- the
_id
column is a convention, and even mandatory for instance, when usingCursorAdapter
- it usually is auto-incremented so it doesn't make sense to be able to set it
- it is a usual thing to add a "server id" column
Please re open if this was not clear ;)
from android-contentprovider-generator.
If you have the _id column NOT as auto-incremented, wouldn't it make sense to add a setter? I am revisiting my db structure and I feel like a setter is needed for this.
If I create, for example, a server id column, then I would manually have to modify the join code since joins and foreign keys can only reference the _id field.
from android-contentprovider-generator.
Related Issues (20)
- How add defaultValue:'' -- (empty) HOT 1
- how to update the value HOT 1
- Put // @formatter:off // @formatter:on around the whole generated code HOT 1
- Android Lint error HOT 3
- How use feature bulkInsert?
- Detect empty entity folder
- Could not find org.jraf:acpg-gradle-plugin
- What is the use of beans?
- FEATURE REQUEST: Notify multiple URIs for related tables
- Not qualified columns when projection is null (relevant again) HOT 3
- Method errors in generated code of v1.9.3 HOT 2
- Some support for simple cases of upgrades
- Adding support for CursorLoader HOT 6
- Notify option is not respected by *ContentValues.update method HOT 1
- How to use sum? HOT 3
- Support available for Batch insert HOT 3
- Add `offset` query parameter HOT 1
- selection.orderByX doesn't seem to work HOT 1
- To use the tool HOT 3
- Cannot declare a field "ID" HOT 1
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-contentprovider-generator.