Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Null fields from Remote EJB

"Dump an object" means printing its field to the log. This way you'll know whether the fields were null before the object left the @Remote.

@Transient fields don't get persisted, and transient class members (e.g. private transient int myInt;) won't get serialized. Both will be null after you get the @Remote object.

Michael

On Thu, Sep 17, 2009 at 6:18 AM, John Arevalo <johnarevalo@xxxxxxxxx> wrote:
Hi again,

Sorry, i don't undersatand "Dump an Object"

Maybe this info can be useful:
all my Entity clases has same field: private static final long serialVersionUID = 1L;
Unit entity has @Transient Field.




On Tue, Sep 15, 2009 at 11:39 PM, Michael Bar-sinai <mich.barsinai@xxxxxxxxx> wrote:
Try some logging: Dump the object you about to return to the log in the @Remote, just before returning it.

-Michael

On Tue, Sep 15, 2009 at 4:20 PM, John Arevalo <johnarevalo@xxxxxxxxx> wrote:


Hi Michael,

My Entity class has @ManyToOne(fetch = FetchType.LAZY) Fields, also has simple @Column String fields, all attributes in entity after return are null, just before return object has correct values.


--
John Arévalo
GNU/Linux User #443701
http://counter.li.org/

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users




--
John Arévalo
GNU/Linux User #443701
http://counter.li.org/

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



Back to the top