Hi
I am wondering if I post this as a question or as an idea for enhancement.
How can we dynamically create NamedQueries while creating an Entity in entity designer.
something like this:
@NamedQueries({
@NamedQuery(name="Item.findAllItemRecords" ,
query="SELECT item " +
"FROM Item item "
"WHERE item.itemId=:itemId),
@NamedQuery(name="Item.findItemByType" ,
query="SELECT item " +
"FROM Item item "
"WHERE item.itemType=:itemType)
})
@Entity
public class Item {
@Id
@Column(name="item_id")
private String itemId;
@Column(name="item_type")
private String itemType;
//.......
}