If u don't provide value for that property, It will not be set.
It will throw error only if that column is defined as NOT NULL in db or required=true is set in repository definition file.
i want to set this property as empty through java
how it it is?
- If u wish to assign empty value while creating item from java, Don't assign anything.
- If u wish to modify existing item, to change this property as empty:Follow this:
Example from ATG Docs:
RepositoryItem user = ... // get a reference to the user you want to update
MutableRepository mutableRepository = (MutableRepository)user.getRepository();
MutableRepositoryItem mutableUser = mutableRepository.getItemForUpdate(user.getRepositoryId(),user.getItemDescriptor().getItemDescriptorName());
Again this will only work if NOT NULL and required=true is not set.
I tried like what ever u sent but it is showing an error that illigal argument exception
but that is of type list of repository items
Try assigning: new List of repository item.
Don't initialize the list with any value.
if i do like that in ACC that property is showing empty but if i query the table in data base i was able to see the previous added data and if add item again it is showing constraint violation error
how to resolve and how to remove data
Doing In ACC, will not invalidate the cache, So It must be picking old value from cache.
Try invalidating cache,then test it.