开发者

Hyperjaxb @Entity

How to avoid declaring fully qualified name of the derived class in @Entity annotation? I have the following xsd:

<xsd:complexType name="Project">
        <xsd:annotation>
                <!-- ... -->
        </xsd:annotation>
 <xsd:sequence>
  <!-- ... -->
 </xsd:sequence>
</xsd:complexType>

but it generates t开发者_如何学Gohe following java source:

@Entity(name = "com.mycompany.db.Project")
@Table(name = "project")
@Inheritance(strategy = InheritanceType.JOINED)
public class Project
    implements Equals, HashCode, ToString
{
...
}

I need to remove explicitly name from @Entity, to be like:

@Entity
@Table(name = "project")
@Inheritance(strategy = InheritanceType.JOINED)
public class Project
    implements Equals, HashCode, ToString
{
...
}

Thanks,


Wow, Hyperjaxb now has an own tag on SO. :)

In the new version (0.5.5, to be released soon) HJ3 generates non-qualified entity names. See http://jira.highsource.org/browse/HJIII-34.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜