hyperjaxb

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 the following java source...

Do we need HyperJAXB generated hashCode & equals methods?

We've generated some (well a lot) of classes using HyperJAXB. All of the classes implement Equals and HashCode and have the implementation style below. Appears this code is never executed.. is there any particular reason we need this code? I'm looking to simplify the classes if we can. public boolean equals(Object object) { ...

Applying a patch from java.net

I have a problem with Jaxb enumerations that is related to this bug https://jaxb.dev.java.net/issues/show_bug.cgi?id=708 A patch has been supplied to the issue that can resolve the problem. How can I apply this patch to resolve my problem ...

HyperJAXB and IDREFs

I have eventually managed to fiddle HyperJAXB so that when XSD has complexType A and this has an IDREF to complexType B, then HyperJAXB will generate @OneToOne JPA annotations between the the two generated entities. However now I'm facing another problem: the XSD has complex type X that can IDREF to either complex type Y or complex type...

Hyperjaxb and Apache CXF

Hey guys, I'm trying to use Hyperjaxb3 with Apache CXF to generate persistence annotations from a WSDL-first web service. I've plugged the Hyperjaxb3-ejb-plugin into the cxf-codegen-plugin, like so. <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxf.version}</version> <depende...

HyperJaxb3 and xsd:anyType

Hi, I have a schema fragment that looks like <xs:element name="dataValue"> <xs:complexType> <xs:sequence> <xs:element name="value" type="xs:anyType"\> </xs:sequence> </xs:complexType> </xs:element> The class produced by hyperjaxb3 contains the following fragment: @Xm...

Hyperjaxb3 association problem

Hi all, I want Hyperjab3 to persist with association like ManyToOne. Here is my example : <xsd:complexType name="Service"> <xsd:sequence> <xsd:element name="id" type="xsd:string" minOccurs="1" maxOccurs="1"> <xsd:annotation> <xsd:appinfo> <hj:id/> </xsd:appinfo> </xsd:annotation> </xsd:element> <xsd:...

Form encoding in Tapestry

Hi ! I have a problem with Tapestry form. My XML database is very sensible with encoding, and need utf-8. When i put the char 'à' in my form, tapestry receive 'Ó' and my core get an error : Invalid byte 2 of 3-byte UTF-8 sequence. I haven't the problem in eclipse with local default configuration for tomcat. But whatever the tomcat co...

hyperjaxb3 xsd:string length in JPA entity

Hi guys, I use Hyperjaxb3 to generate JPA entities from XSD schema. I have a xsd:string type that I want to use for description text (text area in the UI): <xsd:complexType name="Description"> <xsd:simpleContent> <xsd:extension base="**xsd:string**"> <xsd:attribute name="abc" type="xsd:NCName" use="optional" /> ...

JSF + Hyperjaxb3 + Hibernate LazyInitializationException accross requests

I have JSF application with trinidad components and JAXB/JPA entity beans generated by Hyperjaxb3. In the UI I use Trinidad combo box component that has JPA object as values. The scenario is: User make selection in combo box User clicks on a control that sends request to the server and is returned to the same form Data from the form w...

force hyperjaxb2 to generate a fetch="select" propertie on hibernate mapping (on <join> tag)

We have found a problem on our application (a select query that join too much tables). The solution of this problem is to set fetch="select" on the <join> tag in our hibernate mapping file. <subclass extends="..."> <join table="MyTable" fetch="select"> ... </join> </subclass> But this mapping is generated by hyberjaxb2. I hav...