@Entity public class TimeView extends Object implements EntityInterface
create view timeview as
select id, username,
(to_timestamp('01-01-1970 00:00:00', 'DD-MM-YYYY HH24:MI:SS') + timestamp * interval '1 millisecond') at time zone 'cest' at time zone 'utc'
as timestamp from revisioninfo;
create index revuser on revisioninfo(username);
create index revtime on revisioninfo(timestamp);
| Constructor and Description |
|---|
TimeView() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getId()
an entity should have an id
|
LocalDateTime |
getTimestamp() |
String |
getUsername() |
boolean |
isTransient()
is the entity in the database
|
void |
setId(Integer id) |
void |
setTimestamp(LocalDateTime timestamp) |
void |
setUsername(String username) |
String |
toString() |
public static final String USERS
public Integer getId()
EntityInterfacegetId in interface EntityInterfacepublic void setId(Integer id)
public String getUsername()
public void setUsername(String username)
public LocalDateTime getTimestamp()
public void setTimestamp(LocalDateTime timestamp)
public boolean isTransient()
EntityInterfaceisTransient in interface EntityInterfaceCopyright © 2018–2021 Fryske Akademy. All rights reserved.