- This topic has 4 replies, 2 voices, and was last updated 20 years, 5 months ago by
mxnmatch.
-
AuthorPosts
-
mxnmatchMemberWhen I create a hibernate mapping file from a table in the MyEclipse Database Explorer, it seems to just ignore all capitalization.
For instance, take a look at the following. The value for the “table” parameter clearly has the proper capitalization. But, the name has forced the name to lowercase except the first letter.
The same is true of all “column” parameters. They’re all capitalized correctly, but the corresponding “name” is lowercased.
<class name=”Customobjdatameta” table=”CustomObjDataMeta”>
<id name=”id” column=”id” type=”java.lang.Long”>
<generator class=”native”/>
</id><property name=”versionid” column=”versionId” type=”java.lang.Long” />
<property name=”versionof” column=”versionOf” type=”java.lang.Long” />
<property name=”cobj” column=”cobj” type=”java.lang.Long” not-null=”true” />
<property name=”datatype” column=”dataType” type=”java.lang.Long” not-null=”true” />
<property name=”dataix” column=”dataIx” type=”java.lang.Long” not-null=”true” />
<property name=”meta1″ column=”meta1″ type=”java.lang.Long” />
<property name=”meta2″ column=”meta2″ type=”java.lang.Long” />
<property name=”meta3″ column=”meta3″ type=”java.lang.Long” />
<property name=”meta4″ column=”meta4″ type=”java.lang.Long” />
<property name=”meta5″ column=”meta5″ type=”java.lang.Long” />
<property name=”meta6″ column=”meta6″ type=”java.lang.Long” />
<property name=”meta7″ column=”meta7″ type=”java.lang.Long” />
<property name=”meta8″ column=”meta8″ type=”java.lang.Long” />
<property name=”meta9″ column=”meta9″ type=”java.lang.Long” />
<property name=”meta10″ column=”meta10″ type=”java.lang.Long” />
</class>I’m using MyEclipseIDE 3.8.3 and MySQL 4.1.8-nt.
January 10, 2005 at 12:26 am #222445
mxnmatchMemberIncidentally, when I clicked “preview” it kept sending me to the myeclipseide.cmo main page. So I just submitted the message and it worked fine. Dunno what happened there.
January 11, 2005 at 6:00 pm #222567
mxnmatchMemberAny updates on hibernate integration?
Should I just use a different plugin for the time being?
Does anyone have any recommendations for a hibernate plugin?
January 11, 2005 at 6:22 pm #222568
Riyad KallaMemberRight now capitalization is keyed off of the more standard underscore separator:
user_name == userName
my_dog_skip == myDogSkipReading proper capitalization from the DB directly is on our TODO list to get finished here soon, sorry you are running into this problem. You might try Hibernate Synchronizer and see if that plugin fits your needs better w.r.t. to Hibernate mapping.
January 11, 2005 at 7:10 pm #222573
mxnmatchMemberOk, but it seems weird to me. You already seem to be reading the proper capitalization from the db. The table and column attributes are correctly capitalized in the hbm files you generate. It’s just that they are forced to lowercase in the name attribute and when creating the java files.
-
AuthorPosts