Can we add auto-increment column in Ofbiz?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can we add auto-increment column in Ofbiz?

Lei Wu
Guys,

We all know lots of databases support auto-increment columns, how can we define such columns in ofbiz's entitymodel.xml file? Or other means to implement this ?

--
发自我的ONEPLUS智能手机
Reply | Threaded
Open this post in threaded view
|

Re: Can we add auto-increment column in Ofbiz?

taher
Hi

Two answers come to mind:

1- you do not need this feature because it exists at the application level
which you can also customize with services. Sequences are one such place.

2- the whole purpose of the entity engine is to abstract the databases and
provide independebce at the application level.

So my opinion is not to focus on databases ever for any kind of logic. My 2
cents.

Taher Alkhateeb
On Oct 26, 2014 6:22 AM, "[hidden email]" <[hidden email]>
wrote:

> Guys,
>
> We all know lots of databases support auto-increment columns, how can we
> define such columns in ofbiz's entitymodel.xml file? Or other means to
> implement this ?
>
> --
> 发自我的ONEPLUS智能手机