Re: ObjectSelect property return type

2017-05-04 Thread Andrus Adamchik
I suspect the byte[] result is a Java-serialized form of the target ID (serialized Integer or Long??). Not sure why it does it in this case. Could be a bug. But as you have guessed, this API behavior is already different in M6. Per CAY-2255 it will return a full entity [1]. So probably unsafe to

ObjectSelect property return type

2017-05-04 Thread Musall, Maik
Hi, I have this query: ColumnSelect select = ObjectSelect .query( PDCMarketingInfo.class ) .where( someExpression ) .columns( PDCMarketingInfo.CUSTOMER, Property.COUNT ) .select( context ); where PDCMarketingInfo.CUSTOMER is

Re: Validation and @PrePersist

2017-05-04 Thread Musall, Maik
Hi Nikita, thanks for completing the investigation on this. I have workarounds in place and am totally ok to have this tackled not before 4.1. Maik > Am 04.05.2017 um 11:39 schrieb Nikita Timofeev : > > Hi all, > > I've dived into this problem and it seems that there is > no simple (and more

Re: Validation and @PrePersist

2017-05-04 Thread Nikita Timofeev
Hi all, I've dived into this problem and it seems that there is no simple (and more importantly safe) solution and I propose to postpone this change until 4.1. Here is some details for the curious ones :) Currently validation is done by DataContext (either when flushing changes to DataDomain or