Login  Register

[OFBiz] Users - PROBLEM REGARDING PRIMARY KEY CONSTRAINT IN OFBIZ

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

[OFBiz] Users - PROBLEM REGARDING PRIMARY KEY CONSTRAINT IN OFBIZ

Souvik Saha Bhowmik
27 posts
Hi all,
In the entity layer of Ofbiz (entityModel.xml) , we can create
entities and specify a primary key. Ofbiz sets a default primary key
constraint name in that case. Can I specify my own primary key
constraint name.
I have to create some entites with large names. In that case when
Ofbiz sets a primary key constraint name on its own based on the name
of the entity the problem is arising. On trimming the entities the
entity names are becoming eqal and hence the constraint names also. Is
there any other option then renaming my entities.
I shall be highly obliged if someone helps me to sort out the problem
Souvik
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: [OFBiz] Users - PROBLEM REGARDING PRIMARY KEY CONSTRAINT IN OFBIZ

Andrew Sykes
619 posts
Souvik,

There's some good documentation for this on the OFBiz site...
http://www.ofbiz.org/docs/entity.html

If the entity names are very long, it would be a good idea to shorten
them.

The OFBiz guys themselves have done this with some of the WorkFlow
Entities. (See the entity reference in webtools)

Kind Regards
--
Andrew Sykes <[hidden email]>
Sykes Development Ltd

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users