V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  zhazi  ›  全部回复第 1 页 / 共 15 页
回复总数  288
1  2  3  4  5  6  7  8  9  10 ... 15  
水平差,冤框架。让上代码也不上,block
@XiaoJiang9527 晒代码,别虚空打靶
/*
* Copyright (c) 2008, 2019 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/

// Contributors:
// Linda DeMichiel - 2.1
// Linda DeMichiel - 2.0


package javax.persistence;

/**
* Defines strategies for fetching data from the database.
* The <code>EAGER</code> strategy is a requirement on the persistence
* provider runtime that data must be eagerly fetched. The
* <code>LAZY</code> strategy is a hint to the persistence provider
* runtime that data should be fetched lazily when it is
* first accessed. The implementation is permitted to eagerly
* fetch data for which the <code>LAZY</code> strategy hint has been
* specified.
*
* <pre>
* Example:
* &#064;Basic(fetch=LAZY)
* protected String getName() { return name; }
* </pre>
*
* @see Basic
* @see ElementCollection
* @see ManyToMany
* @see OneToMany
* @see ManyToOne
* @see OneToOne
* @since 1.0
*/
public enum FetchType {

/** Defines that data can be lazily fetched. */
LAZY,

/** Defines that data must be eagerly fetched. */
EAGER
}

不看文档,不查手册的吐槽我不是很认可
求一个码用
62 天前
回复了 firhome 创建的主题 Windows 如何让 windows 命令行如 mac 般丝滑?
windows 的盘符和目录转义符让我完全没兴趣用它的 terminal
62 天前
回复了 godruoyi 创建的主题 PHP 为什么 Laravel 这么优秀
我喜欢 Laravel
不喜欢这篇文章。
兼听则明,偏信则暗,没有对比就说一个框架如何如何优雅优秀是不够客观的
62 天前
回复了 Canglin 创建的主题 Java 有没有什么推荐的 Java 书籍
像编码量比较少还是多实践吧,多写一些应用代码。多看官方 guide ,
找本整洁代码读读。
太深入了的体会不到,太肤浅的不如自己实践。
这个么一个小 kit 和整个 spring 生态做耦合,里面还塞了一个 hutool 的大杂烩,也没有测试
麻烦了,兄弟,你自己处理是管理员还是用户想给啥权限给啥权限,整个菜单表都给你
@Nazz We do not go into too many details of JPA or Spring Data here. You can follow the “Accessing Data with JPA” guide from spring.io and read the Spring Data JPA and Hibernate reference documentation. 提示说的很明白,你不去看
112 天前
回复了 DissDoge 创建的主题 程序员 如何写出有效的单元测试?
现在互联网公司的业务开发很简单,相关配套基础设施很完善,几乎不需要 unit test 来保证质量
但是坚持写单元测试可以提高程序设计,更好的拆分任务,降低代码低耦合度。快速验证想法和 bug 。
@Nazz 真是张嘴就来,你说说哪一段文档写让你觉得烂。
@Nazz 啊?你说 spring 的官方文档稀巴烂?
规则引擎
126 天前
回复了 mangojiji 创建的主题 数据库 Mybatis 到底是或不是 ORM?为什么?
虚空打靶呢?
@burymme11
129 天前
回复了 tool2d 创建的主题 程序员 普通人写代码,就是需要满满的细节。
你说的细节是什么?
1  2  3  4  5  6  7  8  9  10 ... 15  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3697 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 45ms · UTC 10:40 · PVG 18:40 · LAX 03:40 · JFK 06:40
Developed with CodeLauncher
♥ Do have faith in what you're doing.