Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » [SOLVED] not recovering a Date field(EclipseLink 2.0 is not recovering a Date field, with TopLink this works perfectly)
icon13.gif  [SOLVED] not recovering a Date field [message #732022] Mon, 03 October 2011 17:49
FiruzzZ Mising name is currently offline FiruzzZ Mising nameFriend
Messages: 19
Registered: October 2011
Junior Member
Its not recoverying a simple Date field.

part of the Model

    @Basic(optional = false)
    @Column(name = "fechaalta", nullable = false, insertable = false, updatable = false, columnDefinition = "timestamp with time zone NOT NULL DEFAULT now()")
    private Date fechaalta;

I tried with entityManager.find, createNativeQuery (Natives query over this model also doesn't work), createQuery, using "refresh" Hint .. nothing works.
This has been working on TopLink for years
Im using PostgreSQL 8.4

.........24hrs later
Hints usually are String... and IF the hints does not exist, no error is triggers (like "toplink.refresh" indeed "eclipselink.refresh")
From now.. I will use QueryHints.REFRESH so if I change the JPA persistence provider at least I will get a package error.
Well that its all.. and sorry if my english is not clear.

[Updated on: Tue, 04 October 2011 11:26]

Report message to a moderator

Previous Topic:Why does @OrderBy add UPPER() to the ORDER BY clause?
Next Topic:Multi-tenancy and @PersistenceContext
Goto Forum:

Current Time: Mon Jun 18 07:51:38 GMT 2018

Powered by FUDForum. Page generated in 0.01628 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top