All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.guyi.web.quick.service.entity.QuickUuidEntity Maven / Gradle / Ivy

The newest version!
package tech.guyi.web.quick.service.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

@Data
@DynamicUpdate
@MappedSuperclass
@EqualsAndHashCode(callSuper = true)
public class QuickUuidEntity extends QuickEntity {

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid",strategy = "uuid")
    private String id;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy