You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the JDO Tutorial, I define persistence using XML metadata,but the classes have not enhanced, jdo tutorial
this is example:
`@PersistenceCapable
public class Product
{
// @PrimaryKey
// @Persistent(valueStrategy=IdGeneratorStrategy.NATIVE)
protected long id;
protected String name=null;
protected String description=null;
protected double price=0.0;
public Product(String name, String description, double price)
{
this.name = name;
this.description = description;
this.price = price;
}
public long getId()
{
return id;
}
public String getName()
{
return name;
}
public String getDescription()
{
return description;
}
public double getPrice()
{
return price;
}
public void setName(String name)
{
this.name = name;
}
public void setDescription(String description)
{
this.description = description;
}
public void setPrice(double price)
{
this.price = price;
}
public String toString()
{
return "Product : " + id + " name=" + name + " [" + description + "]";
}
}`
like this, run successed, but I remove the “@PersistenceCapable” annotation,
how to define model classes using xml metadata?
In the sample project, I define package.jdo in resource like this:
`
using maven plugin mvn datanucleus:enhance
result: [INFO] DataNucleus Enhancer (version 5.0.1) for API "JDO" DataNucleus Enhancer completed with success for 0 classes. DataNucleus Enhancer completed and no classes were enhanced. Consult the log for full details
no classes were enhanced,so how to define persistence only using xml metadata?
The text was updated successfully, but these errors were encountered:
In the JDO Tutorial, I define persistence using XML metadata,but the classes have not enhanced,
jdo tutorial
this is example:
`@PersistenceCapable
public class Product
{
// @PrimaryKey
// @Persistent(valueStrategy=IdGeneratorStrategy.NATIVE)
protected long id;
}`
like this, run successed, but I remove the “@PersistenceCapable” annotation,
how to define model classes using xml metadata?
In the sample project, I define package.jdo in resource like this:
`
`
using maven plugin
mvn datanucleus:enhance
result:
[INFO] DataNucleus Enhancer (version 5.0.1) for API "JDO" DataNucleus Enhancer completed with success for 0 classes. DataNucleus Enhancer completed and no classes were enhanced. Consult the log for full details
no classes were enhanced,so how to define persistence only using xml metadata?
The text was updated successfully, but these errors were encountered: