update demo with associate and entity