My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 54: Implement check for not nullable attributes
12 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Apr 2011


Sign in to add a comment
 
Reported by kirl...@gmail.com, May 6, 2009
What steps will reproduce the problem?
1. Create an entity with one or more attributes not nullable:
   @Column(nullable=false)
   private Long field; 
2. Persist an instance of the entity with fiel = null

What is the expected output? What do you see instead?
An exception is expected, but the instance is persisted without exceptions.

What version of the product are you using? On what operating system?
Google App Engine 1.2.0

Please provide any additional information below.
See http://groups.google.com/group/google-appengine-
java/browse_thread/thread/f07677084a869743


Aug 18, 2009
Project Member #1 max.r...@gmail.com
(No comment was entered for this change.)
Status: Accepted
Labels: -Priority-Medium Priority-High
Jun 22, 2010
#2 pfiste...@gmail.com
Same holds true for: @Persistent(nullValue=NullValue.EXCEPTION)

example:

@PersistenceCapable
public class Foo{
...
@Persistent(nullValue=NullValue.EXCEPTION)
private String bar;
...
}

...

Foo instanceOfFoo = new Foo();
pm.makePersistent(instanceOfFoo); //This does not throw an exception but should


see duplicate: https://code.google.com/p/googleappengine/issues/detail?id=3294
Apr 14, 2011
Project Member #3 max.r...@gmail.com
Thanks for the patch Rolf!
Status: Fixed
May 26, 2011
Project Member #4 max.r...@gmail.com
(No comment was entered for this change.)
Labels: TargetRelease-1.0.9
Sep 20, 2011
Project Member #5 max.r...@gmail.com
(No comment was entered for this change.)
Labels: -TargetRelease-1.0.9 TargetRelease-1.0.10
Sign in to add a comment

Powered by Google Project Hosting