eed3si9n/scalaxb — Issue #117: wsdl generates case classes in default package
Author: eed3si9n
Created: 2011-11-13 00:58:07+00:00
State: open

## steps
1. compile wsdl with an embedded xsd with target namespace `"http://schemas.datacontract.org/Entities"` with the given package name options:

```
packageName in scalaxb in Compile := "generated"

packageNames in scalaxb in Compile := Map(uri("http://schemas.datacontract.org/Entities") -> "entities")
```

## problem
The case classes are generated under `generated` package:

```scala
// Generated by scalaxb.
package generated

case class ComplexEntity(test: entities.EntityType)

trait EntityType

object EntityType {
def fromString(value: String): EntityType = value match {
case "Account" => Account

}
}

case object Account extends EntityType { override def toString = "Account" }
```

## expectation
The case classes should be generated under `entities` package.

```scala
// Generated by scalaxb.
package entities

case class ComplexEntity(test: EntityType)

trait EntityType

object EntityType {
def fromString(value: String): EntityType = value match {
case "Account" => Account

}
}

case object Account extends EntityType { override def toString = "Account" }
```