CORRECTION: not sure how I got the previous view of the filters with only two
items, but I've gone back in to check and I have the full selection of filters,
and the EOGenerator _Files is unchecked.
On Nov 12, 2011, at 4:53 PM, Kevin Spake wrote:
> When I click on the triangle and choose "Filters.." it shows a windows with
> two checkboxes. One for "*.class" and another, ".*" Neither is checked so
> I'm assuming there is no filter active. I did a search for "User.java" with
> no results.
>
> My Resources folder has the following:
>
> SooperSeekrit EOModel
> index.eomodeld
> User.plist
> Properties
> SooperSeekrit.eogen
>
> index.modeld file has a User class as can be seen in the following code.
> Thanks!
>
> {
> EOModelVersion = "2.1";
> adaptorName = JDBC;
> connectionDictionary = {
> URL = "jdbc:postgresql://localhost/sooper";
> driver = "org.postgresql.Driver";
> password = demo;
> plugin = PostgresqlPlugIn;
> username = demo;
> };
> entities = ({className = "com.sooperseekrit.model.user"; name = User; });
> internalInfo = {"_deletedEntityNamesInObjectStore" = (User); };
> userInfo = {
> "_EntityModeler" = {
> activeDatabaseConfigName = Default;
> databaseConfigs = {
> Default = {
> adaptorName = JDBC;
> connectionDictionary = {
> URL = "jdbc:postgresql://localhost/sooper";
> driver = "org.postgresql.Driver";
> password = demo;
> plugin = PostgresqlPlugIn;
> username = demo;
> };
> prototypeEntityName = EOJDBCPostgresqlPrototypes;
> };
> };
> };
> };
> }
>
> On Nov 11, 2011, at 10:50 AM, Faizel Dakri wrote:
>
>> The generated classes should be written to the com.sooperseekrit.model
>> package in your project. Check to make sure you're not filtering the
>> _Entity.java files in Eclipse (click on the "Down Triangle" button in the WO
>> Explorer view and select "Filters..." from the menu; make sure that
>> "EOGenerator _Files" is not checked).
>>
>> If you still don't see the files, double check your EOModel to ensure that
>> the "Generate Source" checkbox is enabled for your entity (look in Entity
>> Modeler's Advanced entity inspector). Also, you probably want to name your
>> classes using a more conventional pattern with a capitalized class name:
>> com.sooperseekrit.model.User.
>>
>> F
>>
>>
>>
>> On 2011-Nov-11, at 12:39 PM, Kevin Spake wrote:
>>
>>> I do have "SooperSeekrit.eogen" in the Resources folder. I right-clicked
>>> and chose "EOGenerate..." but I'm not sure anything happened. Not sure
>>> where i would find the User and _User classes. They are not in any of the
>>> project folders.
>>>
>>> Apologies for being so clueless.
>>>
>>> Thanks for the help.
>>>
>>> Kevin
>>>
>>> On Nov 11, 2011, at 9:43 AM, Pascal Robert wrote:
>>>
>>>> Do you have the User class in the "com.sooperseekrit.model" package? If
>>>> not, probably the eo generation was not done. You should have a
>>>> YourModelName.eogen file in the Resources folder. If you don't have it,
>>>> right-click on the model and select WOLips Tools -> Create EOGenerator
>>>> file. After that, right-click on the .eogen file and select EOGenerate…
>>>> That will create two Java classes for User, one called "_User.java", the
>>>> other "User.java". You can edit User, _User will always be regenerated
>>>> when you run EOGenerator.
>>>>
>>>>> Yes, the username and password are in the model. You were right, the
>>>>> "er.migration" lines in the properties were commented out. I removed the
>>>>> # signs and ran it again. This time I received the following errors in
>>>>> the console:
>>>>>
>>>>> Nov 11 08:48:16 SooperSeekrit[62878] ERROR
>>>>> er.extensions.appserver.ERXApplication - SooperSeekrit failed to start.
>>>>> Nov 11 08:48:16 SooperSeekrit[62878] WARN NSLog - A fatal exception
>>>>> occurred: Invalid class name 'com.sooperseekrit.model.user' for entity
>>>>> 'User'.
>>>>> [2011-11-11 8:48:16 PST] <main> java.lang.RuntimeException: Invalid class
>>>>> name 'com.sooperseekrit.model.user' for entity 'User'.
>>>>> at
>>>>> er.extensions.eof.ERXEntityClassDescription$Factory.registerDescriptionForEntity(ERXEntityClassDescription.java:582)
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Kevin
>>>>>
>>>>>
>>>>> On Nov 11, 2011, at 8:35 AM, Pascal Robert wrote:
>>>>>
>>>>>> Hi Kevin,
>>>>>>
>>>>>> Did you specify the username and password in the model? And in Eclipse's
>>>>>> console, you should see if the migration worked to create the table.
>>>>>> Make sure that those two properties:
>>>>>>
>>>>>> er.migration.migrateAtStartup=true
>>>>>> er.migration.createTablesIfNecessary=true
>>>>>>
>>>>>> are set to true in the Properties file, and they are not commented out
>>>>>> (e.g., they don't have a # in front).
>>>>>>
>>>>>>> I'm trying to go through the "WebObjects, WOLips and Wonder Tutorial,
>>>>>>> Part 1" screencast at
>>>>>>> http://www.wocommunity.org/webobjects_screencasts.html. The first
>>>>>>> attempt to run the project occurs at 12 minutes into the video. When I
>>>>>>> run the project, I get no error messages AFAICT, and the "Hello "World"
>>>>>>> window opens up, but the table "t_user" is not created.
>>>>>>>
>>>>>>> I'm using postgresql. I have created a database called "sooper", and a
>>>>>>> role (ie user) "demo" with a password of "demo".
>>>>>>>
>>>>>>> in the EOModel under Default:
>>>>>>> Prototype = EOJDBCPostgresqlPrototypes
>>>>>>> url: jdbc:postgresql://localhost/sooper
>>>>>>> Driver: org.postgresql.Driver
>>>>>>> Plugin: PostgresqlPlugIn
>>>>>>>
>>>>>>> Any suggestions of where I should look?
>>>>>>> _______________________________________________
>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>>> Webobjects-dev mailing list ([email protected])
>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>>>>>>>
>>>>>>> This email sent to [email protected]
>>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/listfez%40dakri.com
>>>
>>> This email sent to [email protected]
>>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/sparky005s%40yahoo.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]