<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Annotations are missing from generated entities using reverse engineering
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/shlamalama">Alper Akture</a> in <i>JBoss Tools</i> - <a href="https://community.jboss.org/message/649190#649190">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I'm connecting to a teradata intance and using the Eclipse plugin to generate entities off several views. The views don't have any primary key set, so I have declared these in the reverse eng xml file. When I generate the entities, I get java files that do not have any hibernate annotations. There is one table with 250+ columns, so I really need this. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The teradata information is:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Teradata Database 13.10.02.08</p><p>com.teradata.jdbc.TeraDriver</p><p>14.00.00.05</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here's a snippet from the reveng.xml:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4726f9;"><span style="color: #000000;">&#160; </span><span style="color: #019292;">&lt;</span><span style="color: #509191;">table</span><span style="color: #000000;"> </span><span style="color: #93178f;">name</span><span style="color: #000000;">=</span>"F_ACXM_MBR"<span style="color: #000000;"> </span><span style="color: #93178f;">class</span><span style="color: #000000;">=</span>"AcxiomData"<span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #509191;"><span style="color: #000000;">&#160; </span><span style="color: #019292;">&lt;</span>primary-key<span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160; </p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4726f9;"><span style="color: #000000;">&#160; </span><span style="color: #019292;">&lt;</span><span style="color: #509191;">key-column</span><span style="color: #000000;"> </span><span style="color: #93178f;">name</span><span style="color: #000000;">=</span>"MBR_UNIQ_KEY"<span style="color: #000000;"> </span><span style="color: #019292;">/&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #509191;"><span style="color: #000000;">&#160; </span><span style="color: #019292;">&lt;/</span>primary-key<span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #509191;"><span style="color: #000000;">&#160; </span><span style="color: #019292;">&lt;/</span>table<span style="color: #019292;">&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and my hibernate.cfg.xml:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #509191;"><span style="color: #019292;">&lt;</span>hibernate-configuration<span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #509191;"><span style="color: #000000;"> </span><span style="color: #019292;">&lt;</span>session-factory<span style="color: #000000;"> </span><span style="color: #93178f;">name</span><span style="color: #000000;">=</span><span style="color: #4726f9;">"Teradata"</span><span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4726f9;"><span style="color: #000000;">&#160; </span><span style="color: #019292;">&lt;</span><span style="color: #509191;">property</span><span style="color: #000000;"> </span><span style="color: #93178f;">name</span><span style="color: #000000;">=</span>"hibernate.connection.driver_class"<span style="color: #019292;">&gt;</span><span style="color: #000000;">com.teradata.jdbc.TeraDriver</span><span style="color: #019292;">&lt;/</span><span style="color: #509191;">property</span><span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4726f9;"><span style="color: #000000;">&#160; </span><span style="color: #019292;">&lt;</span><span style="color: #509191;">property</span><span style="color: #000000;"> </span><span style="color: #93178f;">name</span><span style="color: #000000;">=</span><span style="color: #0000ff;">"hibernate.connection.password"</span><span style="color: #019292;">&gt;</span><span style="color: #000000;">password</span><span style="color: #019292;">&lt;/</span><span style="color: #509191;">property</span><span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160; <span style="color: #019292;">&lt;</span><span style="color: #509191;">property</span> <span style="color: #93178f;">name</span>=<span style="color: #4726f9;">"hibernate.connection.url"</span><span style="color: #019292;">&gt;</span>jdbc:teradata://host<span style="color: #019292;">&lt;/</span><span style="color: #509191;">property</span><span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4726f9;"><span style="color: #000000;">&#160; </span><span style="color: #019292;">&lt;</span><span style="color: #509191;">property</span><span style="color: #000000;"> </span><span style="color: #93178f;">name</span><span style="color: #000000;">=</span>"hibernate.connection.username"<span style="color: #019292;">&gt;<span style="color: #000000;">username</span></span><span style="color: #019292;">&lt;/</span><span style="color: #509191;">property</span><span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4726f9;"><span style="color: #000000;">&#160; </span><span style="color: #019292;">&lt;</span><span style="color: #509191;">property</span><span style="color: #000000;"> </span><span style="color: #93178f;">name</span><span style="color: #000000;">=</span>"hibernate.default_schema"<span style="color: #019292;">&gt;</span><span style="color: #000000;">U01TKE_GRPR_RADMT_VW</span><span style="color: #019292;">&lt;/</span><span style="color: #509191;">property</span><span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160; <span style="color: #019292;">&lt;</span><span style="color: #509191;">property</span> <span style="color: #93178f;">name</span>=<span style="color: #4726f9;">"hibernate.dialect"</span><span style="color: #019292;">&gt;</span>org.hibernate.dialect.TeradataDialect<span style="color: #019292;">&lt;/</span><span style="color: #509191;">property</span><span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #509191;"><span style="color: #000000;"> </span><span style="color: #019292;">&lt;/</span>session-factory<span style="color: #019292;">&gt;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #509191;"><span style="color: #019292;">&lt;/</span>hibernate-configuration<span style="color: #019292;">&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #509191;"><span style="color: #000000;">And this entity get's generated like so:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #5574c7;">/**</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #5574c7;"> * AcxiomData generated by hbm2java</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #5574c7;"> */</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;"><span style="color: #921167;">public</span> <span style="color: #921167;">class</span> <span style="text-decoration: underline;">AcxiomData</span>&#160; <span style="color: #921167;">implements</span> java.io.Serializable {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; <span style="color: #921167;">private</span> String <span style="color: #211cc7;">mbrUniqKey</span>;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; <span style="color: #921167;">private</span> String <span style="color: #211cc7;">mbrId</span>;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; <span style="color: #921167;">private</span> String <span style="color: #211cc7;">mbrFirstNm</span>;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #921167;"><span style="color: #000000;">&#160;&#160;&#160;&#160; </span>private<span style="color: #000000;"> </span>char<span style="color: #000000;"> </span><span style="color: #211cc7;">mbrMidinit</span><span style="color: #000000;">;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">&#160;&#160;&#160;&#160; <span style="color: #921167;">private</span> String <span style="color: #211cc7;">mbrLastNm</span>;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #211cc7;"><span style="color: #000000;">&#160;&#160;&#160;&#160; </span><span style="color: #921167;">private</span><span style="color: #000000;"> String </span>mbrHomeAddrLn1<span style="color: #000000;">;</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #509191;"><span style="color: #000000;"><br/></span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; color: #509191;"><span style="color: #019292;"><br/></span></p><p>Thanks for any help!</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/649190#649190">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>