书栈网 · BookStack 本次搜索耗时 0.041 秒,为您找到 1131 个相关结果.
  • 23.1. Employer(雇主)/Employee(雇员)

    23.1. Employer(雇主)/Employee(雇员) 23.1. Employer(雇主)/Employee(雇员) 下面关于Employer 和 Employee 的关系模型使用了一个真实的实体类 (Employment )来表述,这是因为对于相同的雇员和雇主可能会有多个雇佣时间段。 对于金额和雇员姓名,用Components建模。 ...
  • 对象和数据结构

    对象和数据结构 使用 getters 和 setters 让对象拥有私有成员 对象和数据结构 使用 getters 和 setters JS 没有接口或类型,因此实现这一模式是很困难的,因为我们并没有类似 public 和 private 的关键词。 然而,使用 getters 和 setters 获取对象的数据远比直接使用点操作符...
  • Loading Inheritance Hierarchies

    Loading Inheritance Hierarchies Using with_polymorphic Using aliasing with with_polymorphic Referring to Specific Subclass Attributes Setting with_polymorphic at mapper configura...
  • 组合模式

    组合模式(Composite Pattern) 组合模式的实例 组合模式的优势 组合模式(Composite Pattern) 以结构化的方式,是单一对象具有树形结构,让单一对象更具有结构性。 组合模式的实例 在雇员和雇员之间都是存在上下级关系,如何用代码更直观的表达和关系与关系的操作,这是一个棘手的问题。 但通过组合模式,将关系表达为树...
  • Mapping Class Inheritance Hierarchies

    Mapping Class Inheritance Hierarchies Joined Table Inheritance Relationships with Joined Inheritance Loading Joined Inheritance Mappings Single Table Inheritance Resolving Colum...
  • 7. 翻译SQL的WHERE语句

    7. 翻译SQL的WHERE语句 # 读取employee数据集 In [ 48 ]: employee = pd . read_csv ( 'data/employee.csv' ) # 对各项做下了解 In [ 49 ]: employee . DEPARTMENT . value_counts (). head ()...
  • 操作对象(Objects Manipulation)

    操作对象(Objects Manipulation) 标志位(flag) 常用函数列表 创建与实例化(Creation/Instantiation) 读写属性(Reading/Writing Properties) 操作对象(Objects Manipulation) 针对对象属性的操作,Phalcon API 在 Zend API 基础上封...
  • 批处理

    批处理 批处理样例 编译和执行 批处理 考虑一种情况,你需要使用 Hibernate 将大量的数据上传到你的数据库中。以下是使用 Hibernate 来达到这个的代码片段: Session session = SessionFactory . openSession (); Transaction tx = session...
  • SQL实例与JSON对象映射表

    SQL实例与JSON对象映射表 概念和术语 Create与Alter Insert Select Update Delete SQL实例与JSON对象映射表 本文档将对比介绍 SQL 实例和 JSON 对象的概念、术语及基本操作。 概念和术语 SQL 实例 JSON 对象 database collection space tabl...
  • 注释

    注释 Hibernate 注释的环境设置 注释类示例 @Entity 注释 @Table 注释 @Id 和 @GeneratedValue 注释 @Column Annotation 创建应用类 数据库配置 编译和执行 注释 到现在为止,你已经看到 Hibernate 如何使用 XML 映射文件来完成从 POJO 到数据库表的数据转...