Hibernate 3 - Core

Dirty Checking
  • Concept : understand dirty checking concept
  • Implementation : understand mechanism in hibernate
  • Behaviour : difference between properties and collection
Hibernate Components This category contains questions regarding the setup of Hibernate (configuration files, mapping files, ...); usefulness and use of important methods for configuration.
  • Configuration : understand the basic Configuration object methods (addClass(Class persistentClass), addFile(), ...) How to get a SessionFactory Object,
  • SessionFactory Object : understand the basic methods ( openSession(), how to get entity metadatas, ...)
  • Property files, hibernate.properties vs. hibernate.cfg.xml, explicit loading
  • Dialects : Basic information found in a dialect, how to configure, how hibernate uses it.
Lifecycle States and Transition Understand entities lifecycle (Transient, Persistent, Detached) and state transition.
  • States : Reading code being able to define what is the state of an entity.
  • Session APIs : Programmatic ways to check the state (Session API)
  • State Transition Session APIs : Understand the Session APIs related to entity state (persist(), save(), evict(), ...)
  • Understand Flushing mechanism
POJO Classes Structure and Simple mapping What are the basic requirements for POJO classes and how to map them in .hbm.xml files
  • Constructor requirements : access modifier allowed, Is constructor mandatory, are parameters allowed.
  • equals() & hashCode() : Understand correct equals() & hashCode() implementations.
  • getters() & setters() : Know how to implement getters and setters, are they mandatory, field/property access.
  • Identifier property : Know how to map and implement id, composite id, generators, custom generators. Understand generator mechanism.
  • Basic Mapping : How to define a particular SQL type for a column, how to map a class on multiple table, ...
  • Attributes for the <class> element and their meaning
  • Attributes for the <property> element and their meaning
Types
  • Hibernate Types : difference between Entity and ValueType, know how to implement Component, Component Collections, ...
  • Custom Types : How to implement UserType and CompositeUserType, understand the mechanism
  • Understand the use of the org.hibernate.usertype.ParameterizedType interface.
这是一个HTML代码片段,用于创建一个隐藏的表格行,其中包含两个文本输入框,用于选择睡眠时间的开始时间和结束时间。 ```html <tr id="sleepRangeTitle" style="display:none;"> <td class="head">Sleep Range Time:</td> <td class="headvalue"> <input type="text" id="startTime" name="startTime" pattern="[0-9]{2}:[0-9]{2}" placeholder="HH:MM" style="width: 60px;"> &nbsp;--&nbsp; <input type="text" id="endTime" name="endTime" pattern="[0-9]{2}:[0-9]{2}" placeholder="HH:MM" style="width: 60px;"> </td> </tr> ``` 在这个代码片段中,我们使用了一个`<tr>`元素来创建一个表格行,并给它设置了一个`id`属性为"sleepRangeTitle",并将其样式设置为"display:none;",表示初始状态下该行是隐藏的。 在表格行内部,我们使用了两个`<td>`元素来创建两列。第一列使用了一个`class`属性为"head",并显示了一个标题文本"Sleep Range Time:"。 第二列使用了一个`class`属性为"headvalue"。在这一列内部,我们创建了两个`<input>`元素,分别用于输入开始时间和结束时间。每个`<input>`元素都有一个`id`属性和`name`属性,以便在提交表单时能够获取输入的值。此外,我们还使用了`pattern`属性来限制输入的格式为"HH:MM",并使用`placeholder`属性提供了示例输入的提示。 这段代码可以用于在HTML表单中添加一个隐藏的表格行,其中包含了选择时间的文本输入框。你可以根据需要将其添加到适当的位置,并根据实际情况进行样式和布局的调整。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值