-
Hi My reactive application is working fine in DEV mode but when I run it in native mode the Using a PostgreSQL database deployed in Docker prior to running in Native with the following script: CREATE TABLE IF NOT EXISTS accounts
(
pisa_uid uuid,
username character varying ,
first_name character varying ,
last_name character varying ,
email character varying ,
password character varying ,
customernumber character varying ,
companycustomernumber character varying ,
customernumberorganisation character varying ,
migration_state boolean,
id INT GENERATED ALWAYS AS IDENTITY,
last_login timestamp with time zone,
imported_timestamp timestamp with time zone,
migrated_timestamp timestamp with time zone,
primary key (id)
); This database is coming from within the organisation so I can't change it. My class: @Entity
@Cacheable
@Getter
@Setter
@ToString
@RegisterForReflection
public class Accounts extends PanacheEntity {
/**
* The Uuid.
*/
@Column(name = "pisa_uid", updatable = false)
String pisaUid;
/**
* The User name.
*/
@Column(name = "username", updatable = false)
String userName;
/**
* The Person number.
*/
@Column(name = "personnumber", updatable = false)
String personNumber;
/**
* The First name.
*/
@Column(name = "first_name", updatable = false)
String firstName;
/**
* The Last name.
*/
@Column(name = "last_name", updatable = false)
String lastName;
/**
* The Email.
*/
@Column(updatable = false)
String email;
/**
* The Password.
*/
@Column(updatable = false)
String password;
/**
* The Customer number.
*/
@Column(name = "customernumber", updatable = false)
String customerNumber;
/**
* The Company customer number.
*/
@Column(name = "companycustomernumber", updatable = false)
String companyCustomerNumber;
/**
* The Organisation customer number.
*/
@Column(name = "customernumberorganisation", updatable = false)
String organisationCustomerNumber;
/**
* The Migration state.
*/
@Column(name = "migration_state")
boolean migrationState;
/**
* The Imported timestamp.
*/
@Column(name = "imported_timestamp", updatable = false)
LocalDateTime importedTimestamp;
/**
* The Migrated timestamp.
*/
@Column(name = "migrated_timestamp")
Timestamp migratedTimestamp;
/**
* The Customer number ag.
*/
@Column(name = "ag_customernumber", updatable = false)
String agCustomerNumber;
/**
* The Customer number as.
*/
@Column(name = "as_customernumber", updatable = false)
String asCustomerNumber;
/**
* The Last login.
*/
@Column(name = "last_login", updatable = false)
LocalDateTime lastLogin;
/**
* Migrate uni.
*
* @param id the id
* @return the uni
*/
public static Uni<Integer> migrate(Long id) {
return update("migrationState = true, migratedTimestamp = ?2 where id = ?1 and migrationState = false",
id, Timestamp.valueOf(LocalDateTime.now()));
} The
I have tested using different DateTime types, LocalDateTime, OffsetDateTime, Timestamp… but it is failing all of them. Running Quarkus 2.16.5 in Reactive mode
Any clues? Thx M |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 1 reply
-
/cc @FroMage (panache), @Sgitario (kubernetes), @geoand (kubernetes), @iocanel (kubernetes), @loicmathieu (panache) |
Beta Was this translation helpful? Give feedback.
-
Any chance you can upload a sample application that exhibits the problematic behavior? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Note on how I run it.
NOTE: remove |
Beta Was this translation helpful? Give feedback.
-
I have debugged it now but can't find a reason for it when it works in DEV mode. DEV:
NATIVE:
NOTE: this log is from my working version, not the attached version, hense the differerent packages |
Beta Was this translation helpful? Give feedback.
-
Thanks for the sample, I'll have a look. |
Beta Was this translation helpful? Give feedback.
-
@DavideD this sounds like a Hibernate Reactive bug, WDYT? |
Beta Was this translation helpful? Give feedback.
-
Yes, it should work in the next Hibernate Reactive release |
Beta Was this translation helpful? Give feedback.
Yes, it should work in the next Hibernate Reactive release