I have two entity classes A and B which looks as follows.
public class A{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@OneToMany(mappedBy = "a", fetch = FetchType.LAZY, cascade = {CascadeType.ALL})
private List<B> blist = new ArrayList<B>();
//Other class members;
}
Class B:
pu...
Hello,
I would like the rule for which "Persist activities cannot be contained within no persistence blocks" error happens in WF4. I see that you can not persist between the first receive-send, but I do not understand the general idea.
Any comment?
Thanks
...
I can persist an object into the DB from Java as such:
Table Person:
varchar name
varchar groupID
varchar emailAddress
key on (name, groupID)
And in Java
Person foo = new Person("dhackner", "3");
session.persist(foo);
The two arguments make up the key. In this case, name and groupID are the unique key in the DB, and thu...
Hi,
In Silverlight, How can we persist data between different pages and controls.
In our application, we plan to have central data object which is to track the user changes from different pages and controls.
How many ways can we have to achieve this? And What's your recommended one?
Thanks,
aghein.ng
...