Hello Everyone.
I've just upgraded to version 6.0.5
I'm using servisebuilder and I have a question
Previously, I was able to write entity (sample):
<entity name="EntityName" local-service="true" remote-service="false">
<column name="id" type="long" primary="true"/>
<column name="sample" type="Long"/> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<Long type (allow null value, but not allowed in liferay)
<finder name="Sample" return-type="EntityName" unique="true"> <<<<<<<<<<Create uniq index in DB
<finder-column name="sample"/>
</ Finder>
</ Entity>
Please take into acccount that the column sample has Long type but not long. In 5.x liferay version I ws able to create entity withg field value == null. This way a was able to have it in unique index because many NULL is accepted in DB.
Now (v. 605), in * hbm.xml service builder specifies the type column:
<property name="sample" type="com.liferay.portal.dao.orm.hibernate.LongType" />
but converts all NULL to zeros ....
respectively, I receive an exception
Is there any way other than manually editing the file * hbm.xml allowing insertion of NULL value in DB
I think is bug
Firmi prego dentro per inbandierare questo come inadeguato.