This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use RedBeanPHP\BeanHelper\SimpleFacadeBeanHelper; | |
use RedBeanPHP\OODBBean as OODBBean; | |
/** | |
* Custom facade bean helper that is aware of a textual prefix in the type names. | |
* For example mususer, muscontact, musXXX. | |
* | |
* @author schophil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity(name = "table") | |
@Table(name = "table") | |
public class SomeEntity { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private UUID id; | |
// for postgres "TEXT" type | |
@Lob | |
private String document; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lombok.CustomLog; | |
import org.hibernate.Session; | |
import org.springframework.stereotype.Component; | |
import org.springframework.transaction.annotation.Transactional; | |
import javax.persistence.EntityManager; | |
import javax.persistence.PersistenceContext; | |
@Component | |
@CustomLog(topic = "JPA") |