0

I am using Spring JPA

@Column(name = "rec_cren_tm", insertable = false, updatable = false)
private Timestamp recCrenTm; 

which is using database timestamp and inserting properly.

But while fetching I am getting this is property as null. Below is what I am using on the method

@Transactional
public interface IClaimRepository extends JpaRepository<Claim, Long> {
    @Transactional(readOnly = false, propagation = Propagation.REQUIRES_NEW)
    List<Claim> findByLnId(String LnId);

How do I get this?

ikos23
  • 4,879
  • 10
  • 41
  • 60
vkt
  • 131
  • 8
  • 1
    you need to add more information. e.g. how Claim entity looks like, how you use your repository. maybe it is null because it is null in a database for the record you fetch ? – ikos23 Jun 20 '18 at 21:24
  • any help would be much appreciated. – vkt Jun 21 '18 at 16:07

1 Answers1

0

This is the same answer i am looking for How to map timestamp column to JPA type?

But this thread doesnt have solution i am looking for

vkt
  • 131
  • 8