I am new to hibernate, and While writing one of the Hbm files, some questions are raised in my head and posted on them, so in hopes of getting the answer
Question: We map pojo property in DB fields
& lt; Property name = "birth_dt" type = "date" & gt; & Lt; Column name = "BIRTH_DATE" height = "4" /> & Lt; / Property & gt; How to Type help / does not help in the attribute tag and what is the difference between the "date" and "java.util.Date" type is ? How does the length feature help / non-help inside the column tag? What do I understand: what is the use of these attributes
TIA
Type: This is type from the hibernate type system. For example, you can use a custom type here. During the type of mapping of the basic types, there is no difference in specifying the Java type name or hibernate type.
Length: It is used for schema generation which supports the length, such as varchar.
Comments
Post a Comment