jack_zhang

Results 41 issues of jack_zhang

very thank you! because ember.js is used by more and more developer

help wanted
feature request

#### 第一步实体 implements Persistable, Serializable #### 第二步重写 isNew方法即可; 参考如下实体: ```` @Builder @Getter @Setter @ToString @Entity @NoArgsConstructor @AllArgsConstructor @Table(catalog = "user_gold", name = "user_goldjours_shard", indexes = {@Index(unique = true, columnList =...

1: 不够结构化,完全不知道里面是什么; 2:可能引起其它bug

第82页有这样一段话:@Enumerated 在这里没什么作用了

#是否在view层打开session,默认是true,其实大部分场景我们不需要打开,我们可以设置成false, # 在22章节我们在详细讲解 spring.jpa.open-in-view=false

![631660273143_ pic](https://user-images.githubusercontent.com/11462004/184277078-576ea484-46d6-4d27-afd9-0eff744a7051.jpg) ![661660273187_ pic](https://user-images.githubusercontent.com/11462004/184277085-af0d4d39-3e2d-44cd-9592-0db23b95018f.jpg)

### 实验Entity代码如下: ```` @Setter @Getter @EqualsAndHashCode(of = {"id"}, callSuper = true) @Entity @Table(name = "tpusers") public class Tpuser e { private static final long serialVersionUID = 2299533081180191108L; private String name;...

```` 这报错就一直报 No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.example.demo.User["role"] ```` 解决方法入下: ##### 1. spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=false #####...

### 开启事务日志: `logging.level.org.springframework.transaction.interceptor=TRACE` #### 输出格式如下: ``` 2012-08-22 18:50:00,031 TRACE - Getting transaction for [com.MyClass.myMethod] [my own log statements from method com.MyClass.myMethod] 2012-08-22 18:50:00,142 TRACE - Completing transaction for [com.MyClass.myMethod] ```...

比如一个数据是 1 ,数据库里面通过加密保存的是aaa,我现在查询的时候触发了convertToEntityAttribute 解密成了 1,我现在需要更改一下加密方式,把他改成bbb,我想在convertToDatabaseColumn修改一下,如果是1 保存的时候映射到bbb。但是现在查出来已经是1了,但是保存的时候因为没有变更或者是别的什么原因,没有触发convertToDatabaseColumn。有的表通过更新version或者update time就可以触发,但是有一张表在设计的时候没有这些 see: https://www.baeldung.com/jpa-attribute-converters ```` @Entity(name = "PersonTable") public class Person { @Convert(converter = PersonNameConverter.class) private PersonName personName; // ... } @Converter public class PersonNameConverter...