Tags » Hibernate

Hibernate Formula Annotated Field Behaviors

When the @Formula annotation is used to create a virtual column (in object model but not in database), developers should be aware of some behaviors to avoid of any pitfalls. 515 more words

Java

Hibernate with Java 8

Somewhere last year I had this crazy idea – how awesome it would be to have combined Hibernate together with latest Java 8 release: handling null objects with Optional, processing Hibernate Queries through streams operating on LocalDate, LocalTime. 214 more words

Got my foot off the accelerator...

I have written before about how I sometimes give myself theme music or that sometimes a song attaches itself to me.

(That sentence on its own is a little bit scary and makes me sounds a little mad but eh what can you do.) 308 more words

Fix Hibernate JPA sequence generating odd id with allocationSize

I config my jpa entity class as usual using Intellij generated stub from DB schema with below config:


@Entity
@javax.persistence.Table(name = "IMPORT_RUN", schema = "SCRCOWNER", catalog = "")
public class ImportRunEntity
{
    private Long importRunId;

    @SequenceGenerator(name = "IMPORT_RUN_ID_GEN", sequenceName = "SEQ_IMPORT_RUN_ID")
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "IMPORT_RUN_ID_GEN")
    @javax.persistence.Column(name = "IMPORT_RUN_ID", nullable = false, insertable = true, updatable = true, precision = -127)
    public Long getImportRunId()
    {
        return importRunId;
    }

    public void setImportRunId(Long importRunId)
    {
        this.importRunId = importRunId;
    }
..... 520 more words
Java

Disable hibernate in windows

Its a big pain when we are running out of space on c drive and got to know that its windows which is killing my disc. 57 more words

Hibernate

day 721 - hibernating day

all commitments are pushed to the side, not going out tonight because i feel the need to hibernate. staying at home and taking the time to catch up on so much i couldn’t get around to. 20 more words

My 365