This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Modified from http://objectstyle.org/cayenne/lists/cayenne-user/2007/12/0084.html | |
* for use with Postgres. However, it performs many SELECTs which may or may not be | |
* efficient depending on your application. | |
*/ | |
private void setNewObjectDefaults() { | |
BaseDataObject mainObj = (BaseDataObject) this; | |
ObjEntity ent = Cayenne.getObjEntity(mainObj); | |
Collection attribs = ent.getAttributes(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import com.neovisionaries.ws.client.*; | |
import java.io.IOException; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.Map; | |
public class Main extends Thread { |