Question: I have the following code, converting dec. to binary (stored as an int) and it runs just fine in C::B :

```
 for(i=0;i<8;i++)
   {
    carry = start_value%2;
    tab[bla] = carry;
    bla++;
    start_value = start_value/2;
   }

for(i=bla; i>0; i--)
       {
       binary = binary + tab[i]*pow(10,i);
       }

```

But when I try to do the same on a PIC18F4550 with MikroC it just fails !
I have included 'pow' and respected the declarations for the variables I use. No matter what, the output is wrong (-62053 instead of 110110 for instance).

Thanks for taking a look into it :)
Have a nice day

Answer: 
No. Neither JDO or JPA would support such a thing. Obviously you could subclass the class and have the subclass for the amalgamated/processed data and store it in its own table
As an update, given that there are a number of ways of attempting to subclass or embed the data within another class, lots of which dont work very well (on GWT), here are two schema that do work. In the first the main features are that primary key is in base class, and the inheritance strategy is SUBCLASS\_TABLE. Note this means that BaseData cannot be persisted. A second mechanism is shown below. In it the base class is a regular class that can be persisted and the derived class has an inheritance strategy of customStrategy="complete-table"

1)

```
@PersistenceCapable

@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)

public class BaseData  
{
    @PrimaryKey

    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    public Long id;

    // scan data
    @Persistent
    public String Data1 = "";
    //  etc...
}

@PersistenceCapable
public class ProcessedData  extends BaseData
{
    // No key
    // Thats it
}

@PersistenceCapable
public class RawData  extends BaseData
{
    // No key
    // Thats it
}

```

2)

```
@PersistenceCapable
@Inheritance(customStrategy = "complete-table")

public class ProcessedData  extends RawData 
{
// thats it
}

@PersistenceCapable
public class RawData 
{
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    public Long id;

    @Persistent
    public String Data1 = "";

    // ...
}

```