highsource / highsource/hyperjaxb3

encoding problem with maven-jaxb2-plugin

Open
#32 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
37
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Hi, iam testing those projects from http://confluence.highsource.org/display/HJ3/Downloads to generate some java files from xsd.

I got it working with **maven-hyperjaxb3-plugin**, generating UTF-8 files like i wanted, but it didnt with **maven-jaxb2-plugin and hyperjaxb3-ejb-plugin** . I got encoding issues with those plugins. I tried to set tag into pom.xml but didnt work.
- Basic project template for Hibernate MAVEN (only that generated utf-8 java files)
- Purchase order initial sample for Hibernate MAVEN (got encoding issue)
- Purchase order build with maven-jaxb2-plugin MAVEN (got encoding issue)

Any tips about it?

Also, i realize that the source code generated with those projects are differents.
For example:

```
//Advogado

//Pessoa









...
```

with maven-hyperjaxb3-plugin generates this:

```
....
@Entity(name = "Advogado")
@Table(name = "ADVOGADO")
@Inheritance(strategy = InheritanceType.JOINED)
public class Advogado
....
```

with maven-jaxb2-plugin and hyperjaxb3-ejb-plugin generates this:

```
...
@Entity(name = "Advogado")
@Table(name = "ADVOGADO",schema="selodig")
@Inheritance(strategy = InheritanceType.JOINED)
@SequenceGenerator(name = "Generator_ADVOGADO", sequenceName = "seq_advogado")
public class Advogado
...
```

so, whats happening?

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.